M

Mr. Dubey • 100.69K Points
Coach

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
Share

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics