-
What is the output of the following program?
#include
using namespace std;
int main()
{
int n = 0x10 + 030 + 50;
cout << sizeof(n)<<'\n';
return 0;
}
-
- 0x10 + 030 + 50
- 030 + 50
- 0x10 + 030
- Depends on compiler
- Garbage
Correct Option: D
The sum of three numbers are belongs to different number systems, so the result is type casted into integer.