LogiQuest
Back to Objects and Classes
13

What will be the output of the program?

#include <iostream>
using namespace std;
class A { int a; char c; };
class E {};
int main() {
    cout << (sizeof(E) >= 1) << endl;
    return 0;
}
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.