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 CPP Programming question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

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