Sail E0 Webinar
Question


What will be the output of the following program?


#include
class Base
{
int x, y;
public:
Base()
{
x = y = 0;
}
Base(int xx)
{
x = xx;
}
Base(int p, int q = 10)
{
x = p + q;
}objDefault(1, 1);
y = q;
}
void Display(void)
{
cout
Options:
A .  3 2
B .  8 3
C .  11 6
D .  11 10
E .  The program will not compile successfully.
Answer: Option C



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers