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 .

18th Aug 2017, 3:11 PM
Ahmet
Ahmet - avatar
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
18th Aug 2017, 3:40 PM
sayan chandra
sayan chandra - avatar
+ 1
congratulations
18th Aug 2017, 3:57 PM
Ahmet
Ahmet - avatar
0
the ans is 9
18th Aug 2017, 3:37 PM
sayan chandra
sayan chandra - avatar
- 1
mmmmhmmm
18th Aug 2017, 3:42 PM
sayan chandra
sayan chandra - avatar
- 1
nothing to say sorry jamie... its good that u tried to clarify... ## no problem
18th Aug 2017, 3:44 PM
sayan chandra
sayan chandra - avatar