- 1

What the meaning of "cout<<(1.5<1);"?

Please, can any one explain?

6th Jun 2020, 9:04 AM
Aminul
Aminul - avatar
8 Respuestas
+ 1
You're most welcome
6th Jun 2020, 9:14 AM
Hardik Sharma
Hardik Sharma - avatar
+ 1
It's just a massage to print it like Cout<<"(1.5<1)"; Or If it is a condition like Cout << (1.5<1); Then if it's a Boolean variable then it's mean that 1.5 is less then one so the condition is false and we know that for true it's print "1" and for false it print "0" So the answer is " 0".
8th Jun 2020, 6:55 AM
Naveed
Naveed - avatar
0
cout is used to print and inside parantheses there written a condition which is false so it will print 0
6th Jun 2020, 9:12 AM
Hardik Sharma
Hardik Sharma - avatar
0
Ok! I see, thanks...
6th Jun 2020, 9:13 AM
Aminul
Aminul - avatar
0
Thank you for your suggestion and I am trying my best in cppdroid...
6th Jun 2020, 4:39 PM
Aminul
Aminul - avatar