1

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

Correct Answer: a non zero value

Make the most of this question

This page focuses on one Object Oriented Programming (OOP) question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

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