πŸ“Š C++
Q. 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) Compiler Error
  • (D) Runtime Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) A non-zero value

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
147
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
88%
Success Rate