A

Admin • 833K Points
Coach

Q. What will be output if you will compile and execute the following c code?

Code:
void main()
{
int i=0;
if(i==0){
i=((5,(i=3)),i=1);
printf(“%d”,i);
}
else
printf(“equal”);
}
  • (A) 1
  • (B) 3
  • (C) 5
  • (D) equal
  • Correct Answer - Option(A)
  • Views: 31
  • 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.