A

Admin • 833K Points
Coach

Q. What will be the output of the following C code snippet?

Code:
#include <stdio.h>
void main()
{
1 < 2 ? return 1: return 2;
}
  • (A) returns 1
  • (B) returns 2
  • (C) Varies
  • (D) Compile time error
  • Correct Answer - Option(D)
  • Views: 29
  • Filed under category C Programming
  • Hashtags:

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.