Question OOP-CLS-0066
HardWhat is the output of this code?
#include <iostream>
using namespace std;
struct S { char c; int i; char d; };
struct U { char c; char d; int i; };
int main() {
cout << (sizeof(S) > sizeof(U));
}
- A.
Compilation error
- B.
0
- C.
It depends on the values
- D.
1
Sign up free to see the answer and a step-by-step explanation.