A

Admin • 833K Points
Coach

Q. What is the output of C Program.?

Code:
int main()
{
int a=0, b;
a = (5>2) ? b=6: b=8;
printf("%d %d",a, b);

return 0;
}
  • (A) 6 6
  • (B) 0 6
  • (C) 0 8
  • (D) compiler error
  • Correct Answer - Option(D)
  • Views: 25
  • 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.