C - Operators and Expressions
What will be the output of this code snippet?
int i = 5;
int j = i-- + ++i;
printf("%d", j);
int i = 5;
int j = i-- + ++i;
printf("%d", j);
i-- and ++i valuesi-- uses 5 then decrements to 4; ++i increments 4 to 5 and uses 5.i--) + 5 (from ++i) = 10.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions