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
Nozibul Islam -
Manisha Mardi -
Sospeter Mong'are -
Panchal Aditya Nileshbhai -
Top comments (2)
Great! Can you also tell why
-->
works?Yeah correct but
-->
works because the lexer ignores whitespace andx--
is parsed.