Predict the output of the following code and tell me why this works:
#include <stdio.h>
int main()
{
int x = 10;
while (x --> 0)
{
printf("%d ", x);
}
return 0;
}
The one who answers well will get a follow back!
Predict the output of the following code and tell me why this works:
#include <stdio.h>
int main()
{
int x = 10;
while (x --> 0)
{
printf("%d ", x);
}
return 0;
}
The one who answers well will get a follow back!
For further actions, you may consider blocking this person and/or reporting abuse
Kudzai Murimi -
Jack Pritom Soren -
Arbythecoder -
S3CloudHub -
Top comments (2)
Great! Can you also tell why
-->
works?Yeah correct but
-->
works because the lexer ignores whitespace andx--
is parsed.