What is multiple inheritances in C++?
Example:
class X //base class
{
public:
X() { cout << "X's constructor" ; }
};
class Y //base class
{
public:
Y() { cout << "Y's constructor "; }
};
class C: public B, public A // Derived class: Multiple inheritance
{
public:
Z() { cout << "Z's constructor" ; }
};What is the result of the following statement in C, if integers are outputted and data type of x, y, z is float?
x = y = z = 0;
Code for the given statement:
#include<stdio.h>
int main()
{
float x, y, z;
x = y = z = 0;
printf("x = %d, y = %d, z = %d", x, y, z);
return 0;
}
Output: x = 0, y = 0, z = 0The correct answer is website.
Key Points
In order to prevent the practice of sati, in which year it was first banned under the "Bengal Sati Regulation"?
The correct answer is In 1829.
Key Points
Additional Information
The correct answer is Transpiration.
Additional Information
Guttation
Evaporation
Translocation
Total MCQS : 2533
grade191 Points
54 Points
53 Points
52 Points
49 Points