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

Ans

  • Latha
  • 28 Feb
  • 8696 Views
  • 118 Answers
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

0
  • it should be from right to left and not vice versa

tcs
Practice Mock Test
tcs