In C programming, the symbol (–>) doesn’t represent an operator.
Instead, it is a combination of two separate operators, i.e., --
and >
known as the “goes to.”
To understand how “goes to” operator works, go through the below code snippet.
In the example, there is conditional’s code which decrements variable x, while returning x’s original (not decremented) value, and then compares it with 0 using the > operator.
int _tmain(){ int x = 10; while( x --> 0 ) // x goes to 0 { printf("%d ", x); } printf("\n"); }
9 8 7 6 5 4 3 2 1 0 Press any key to continue . . .