Nguyễn Hương Chà
New member
What will be the output of the following C++ code?
A. 2
B. 4
C. Depends on compiler
D. Garbage
Code:
#include <iostream>
using namespace std;
int main()
{
int num = 0x20 + 020 + 20;
cout << sizeof(num)<<'\n';
return 0;
}
B. 4
C. Depends on compiler
D. Garbage