What is –> operator in C?
[c]–>[/c] is not an operator. It is two separate operators, [c]–[/c] and [c]>[/c].
The conditional’s code decrements x, while returning x’s original value, and then compares the original value with 0 using the > operator.
Example:
#include<iostream.h> #include<conio.h> void main() { int x = 10; while( x --> 0 ) { printf("%d ", x); } getch(); }