What is –> operator in C?
–> is not an operator. It is two separate operators, — and >. 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();
}