Q.

Output of following program?
#include<iostream>
using namespace std;
class Point {
Point() { cout << "Constructor called"; }
}; int main()
{
Point t1;
return 0;
}

A. Compiler Error
B. Runtime Error
C. Constructor called
D. None of the above
Answer» A. Compiler Error
4.6k
0
Do you find this helpful?
23

View all MCQs in

CPP Programming

Discussion

No comments yet

Related MCQs