S

Siddharth M • 1.75K Points
Master

Q. What is the output of the following program?

Code:
#include
using namespace std;
int main()
{
int n = 0x10 + 030 + 50;
cout << sizeof(n)<<'\n';
return 0;
}
  • (A) 0x10 + 030 + 50
  • (B) 030 + 50
  • (C) 0x10 + 030
  • (D) Depends on compiler
  • Correct Answer - Option(D)
  • Views: 150
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics