MCQOPTIONS
Saved Bookmarks
| 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 |
| D. | 0 |
| Answer» B. 5 | |