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
πŸ’¬ Discuss
βœ… Correct Answer: (D) Depends on compiler

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
325
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Siddharth M
Publisher
πŸ“ˆ
84%
Success Rate