R

Rakesh Kumar • 28.44K Points
Instructor II

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) Compiler Error
  • (D) Runtime Error
  • Correct Answer - Option(A)
  • Views: 31
  • Filed under category C++

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.

Be the first to start discuss.


Question analytics