1. Computer Science Engineering (CSE)
  2. CPP Programming
  3. Predict the output of following C++ prog...
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
Answer» A. A non-zero value
View all MCQs in:   CPP Programming

Discussion