C - Operators and Expressions
Consider this code:
What is the value of
int x = 0;
int y = x++ + ++x + x-- + --x;
What is the value of
y after execution?int x = 0;
int y = x++ + ++x + x-- + --x;
y after execution?x=0.x++: uses 0, then x=1++x: x=2, uses 2x--: uses 2, then x=1--x: x=0, uses 0x-- x=1, then --x decrements to 0.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions