Close sidebar

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

Ans

Your Answer

given printf statement as ++a + ++b + b++ where a=5. b=6 then ++a means preincrement and value is 6. and now ++b and value is 7 and b++then before we have value 7in b since it is post increment the value will be 7 only and after that it increments. then now values are ++a + ++b + b++ 6+7+7=19

-1
Comment
Practice Mock Test
tcs