Q.

Predict the output of following C++ program
#include<iostream> using namespace std;
class Empty {}; int main()
{
cout <<sizeof(Empty); return 0;
}

A. a non zero value
B. 0
C. compile time error
D. runtime error
Answer» A. a non zero value
1.5k
0
Do you find this helpful?
4

Discussion

No comments yet

Related MCQs