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
Q7: How many objects can be created from
Q8: Which of the following statements is correct
Q9: What happens when a class with parameterized
Q10: Which of the following interface determines how
Q11: What is the difference between struct and
Q13: class Test { int x;};int main(){Test t;
Q14: Which of the following is true?
A)all objects
Q15: Which of the following is true about
Q16: Which of the following is true about
Q17: Predict the output?#include <iostream> using namespace std;class
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents