Close sidebar

#include<stdio.h>intmain(){ int a=5,b=6; printf("%d",++a + ++b + b++); return0;

Ans

Your Answer

1. Value of a will be (after pre Increment ) 6 2. b after pre Increment 7 3. Here the value of b was 7 in the previous Increment therefore it will become 8 but as it is post Increment first the math will get solved i.e 6+7+7 = 20 Answer is 20

Comment
Practice Mock Test
tcs