+ 1

Int x = 20; int y = 10; cout<<(x>y); output????

output???

21st Feb 2017, 3:50 AM
Sanyam Jain
Sanyam Jain - avatar
3 Answers
+ 5
1 which stands for true
21st Feb 2017, 4:04 AM
Jakub Stasiak
Jakub Stasiak - avatar
+ 5
Comparison operators outputs whether the given situation is true or false. In the above problem, as the x is greater than y, which is true. Therefore output of the following code will be 1.
21st Feb 2017, 4:09 AM
Rohit Swami
Rohit Swami - avatar
0
no output show on the screen
7th Mar 2017, 7:48 AM
Zahid Khan
Zahid Khan - avatar