C - Operators and Expressions
What is the value of variable
y after this code runs?int x = 3;
int y = ++x;
y after this code runs?int x = 3;
int y = ++x;
++x increases x first, then uses the new value.x starts at 3, ++x makes it 4, so y is assigned 4.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions