1

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

Correct Answer: A non-zero value

Make the most of this question

This page focuses on one C++ MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

C++ MCQs MCQ: Predict the output of following C++ program. #include using namespace std; class Empty {}; int main() { cout << sizeof(Empty); return 0; } | Extra Education