

MCQOPTIONS
Saved Bookmarks
1. |
Which constructor will be called from the object created in the code below? class A { int i; A() { i=0; cout<<i; } A(int x=0) { i=x; cout<<I; } }; A obj1; |
A. | Default constructor |
B. | Parameterized constructor |
C. | Compile time error |
D. | Run time error |
Answer» D. Run time error | |