First time here? Checkout the FAQ!
x
menu search
brightness_auto
more_vert

What will be the output of the following C code? 

#include 
int main()
{
int a = 1, b = 1,
c; c = a++ + b;
printf("a=%d, b=%d", a, b);
}



thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
 
verified
Best answer

a=2 , b=1 

ouput can be seen in image 

image

thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
more_vert
If you spot any mistake , kindly comment !
...