C - Loops
What is the error in the following code snippet?
int x = 0;
while (x < 4)
printf("%d", x);
x++;int x = 0;
while (x < 4)
printf("%d", x);
x++;x++ is outside the loop, so x never changes inside the loop.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions