What do you call an operator?

Asked 1 years ago, Updated 1 years ago, 74 views

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);
    }
}

c++ c code-formatting standards-compliance operator

2022-09-22 22:36

1 Answers

--> is not an operator. '--' and '>' are two operators combined.

while( (x--) > 0 ) Think of it like that.


2022-09-22 22:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.