How does the next code run? It's my first time seeing it in C grammar when I think it's going well in GCC ㅜㅜ Where's that thing? What's that called?
#include <stdio.h>
int main()
{
int x = 10;
while (x --> 0) // x goes to 0
{
printf("%d ", x);
}
}
--> is not an operator. '--' and '>' are two operators combined.
while( (x--) > 0 ) Think of it like that.
© 2024 OneMinuteCode. All rights reserved.