+ 1
int b=5; int a=++b; printf("%d",a+b);
How to get this answer
2 Answers
+ 6
int a=++b; //here pre-increment used, b increased to 6 and then assigned to a.
So 6+6=12 is the answer
+ 1
It is equal to
int b=5;
int b=b+1;
int a=b;
printf("%d",a+b);