" operator in C/C++? You can study and learn programming as you wish in the content of this website. ">
 

Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

What is the "-->" operator in C/C++?

--> is not an operator. It is in fact two separate operators, -- and >.

The conditional's code decrements x, while returning x's original (not decremented) value, and then compares the original value with 0 using the > operator.

To better understand, the statement could be written as follows:

while( (x--) > 0 ) 
Source by thecodeteacher.com #
 
PREVIOUS NEXT
Tagged: #What #operator
ADD COMMENT
Topic
Name
5+5 =