-
Which of the following is the correct output for the program given below?
#include <stdio.h>
int main ( )
{
int a, b, c;
a = b = c =1;
printf ("a = %d b = %d c = %d\n", ++a, b++, ++c);
return 0;
}
-
- a = 2 b = 1 c = 2
- a = 2 b = 2 c = 2
- a = 2 b = 2 c = 1
- a = 1 b = 2 c = 1
Correct Option: A
a = 2 b = 1 c = 2