Showing posts with label C++. Show all posts
Showing posts with label C++. Show all posts

What Does the --> "Operator" Mean in C and C++? (It's Not Real)

Quick answer: there is no --> operator in C or C++. What you're really seeing is two separate, ordinary operators sitting next to each other: the postfix decrement -- and the greater-than comparison >. The compiler parses x --> 0 as x-- > 0.