0
Do you know this in c++(-->)?
int x = 10; if(x --> 0) cout << x; This code is correct. Do you know the answer? I'm curious about your answers .
7 Answers
+ 2
Ahmet
its not -->
its 2 operator...
one is --
second is >
x-- means post decrement..
> is greater than
so when post decrement of x is greater than 0
then cout(x)
as of post decrement its 9 now
+ 1
congratulations
0
the ans is 9
- 1
mmmmhmmm
- 1
nothing to say sorry jamie...
its good that u tried to clarify...
## no problem