1.

Note:Includes all required header filesusing namespace std; class Test{ static int x; int *ptr; int y;}; int main(){ Test t; cout << sizeof(t) << " "; cout << sizeof(Test *);}15.Which of the following is true about the following program

A. Compiles and runs fine
B. Compiler Error in Line "::t.get();"
C. Compiler Error: Cannot have two objects with same class name
D. Runtime error
Answer» B. Compiler Error in Line "::t.get();"


Discussion

No Comment Found

Related MCQs