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
Muhammad A Faishal -
Michael Tharrington -
Hasan Elsherbiny -
Temani Afif -
Once suspended, delta456 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, delta456 will be able to comment and publish posts again.
Once unpublished, all posts by delta456 will become hidden and only accessible to themselves.
If delta456 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Swastik Baranwal.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag delta456:
Unflagging delta456 will restore default visibility to their posts.
Top comments (4)
Great! Can you also tell why
-->
works?Yeah correct but
-->
works because the lexer ignores whitespace andx--
is parsed.