Q.

#include<iostream> using namespace std;
class X
{
public:
int x;
};
int main()
{
X a = {10};
X b = a;
cout <<a.x <<" " <<b.x; return 0;
}

A. compiler error
B. 10 followed by garbage value
C. 10 10
D. 10 0
Answer» D. 10 0
923
0
Do you find this helpful?
11

Discussion

No comments yet

Related MCQs