Q. What is the output of following c++ program?

Code:
{
int a = 5;
int b = 10;
cout << (a>b?a:b);
}
  • (A) 5
  • (B) 10
  • (C) Syntax error
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) 10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
184
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
83%
Success Rate