Multiple Choice
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
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q10: Which of the followings is/are automatically added
Q11: Which of the following data type does
Q12: Which of the following statements is correct
Q13: Which of the following interface determines how
Q14: What happens when delete is used for
Q16: Which feature of C++ contain the concept
Q17: What is the difference between struct and
Q18: Which of the following is true about
Q19: Output of following program?#include<iostream> using namespace std;
Q20: class Test { int x;};int main(){Test t;