Q.

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

A. compile time error
B. run time error
C. constructor called
Answer» A. compile time error
4.8k
0
Do you find this helpful?
31

Discussion

MR

Mukti Rajagopalan
1 week ago

Highly recommended.
1

Related MCQs