Computer Science - Object Oriented Programming Using C++ - Discussion
Discussion Forum : Object Oriented Programming Using C++ - Section 2 (Q.No. 41)
41.
Evaluate the following expression: 7 >=3 + 4 || 6<4 && 2<5
Discussion:
4 comments Page 1 of 1.
Ayesha.. said:
3 years ago
Operators - +,>=,&&,||
First && part is executed, then || part is executed.
ie; ( true || false) && (true) -> true.
true && true -> true.
First && part is executed, then || part is executed.
ie; ( true || false) && (true) -> true.
true && true -> true.
Akabari said:
5 years ago
Yes, right @Robi.
Robi said:
1 decade ago
First && part is executed, then || part is executed.
ie; true || false && true -> true || false -> true
ie; true || false && true -> true || false -> true
R.Nithya said:
1 decade ago
Operators - +,>=,||,&&
7>=4+3 -> 7>=7 -> True
6<4 -> False
2<5 -> True
True || False && True ->True && True -> True
7>=4+3 -> 7>=7 -> True
6<4 -> False
2<5 -> True
True || False && True ->True && True -> True
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers