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
Fabiana de carvalho Lima dias -
Brian -
Mohamed Ibrahim -
Aditya Rawas -
Top comments (2)
Great! Can you also tell why
-->
works?Yeah correct but
-->
works because the lexer ignores whitespace andx--
is parsed.