An error occurred while fetching the topics. Please try again later.
|
1.
|
Predict the output?#include using namespace std;class Test{ int x; Test() { x = 5; } };int main(){ Test *t = new Test; cout x;}
|
| A. |
Compiler Error |
| B. |
5 |
| C. |
Garbage Value |
|
Answer» B. 5
|
|
|
Discussion
Related MCQs
-
Window class, onSetCursor/3, defines
-
SizerClient in window programming ?
-
Window class, onHScroll/3, defines
-
Window class, onMove/2, defines
-
Window class, onMouseDown/5, defines
-
Controls are
-
Window class, onKeyUp/3, defines
-
Window class, onSize/2, defines
-
These exist ——— panel windows inside the same frame window.
-
SizerFixed in window programming