A

Admin • 833K Points
Coach

Q. What is the output of this program?

Code:
#include <stdio.h>
void main()
{
int a=1, b=2, c=3, d;
d = (a=c, b+=a, c=a+b+c);
printf("%d %d %d %d", d, a, b, c);
}
  • (A) 11 3 3 11
  • (B) 11 3 2 11
  • (C) 11 1 5 11
  • (D) 11 3 5 11
  • Correct Answer - Option(D)
  • Views: 17
  • 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.