Computer Science - Object Oriented Programming Using C++ - Discussion
Discussion Forum : Object Oriented Programming Using C++ - Section 1 (Q.No. 7)
7.
Evaluate the following expression: 3 >6&&7>4
Discussion:
23 comments Page 3 of 3.
Sheetal said:
1 decade ago
3 is not greater than 6 i.e 3>6=false.
7 is greater than 4 i.e 7>4=true
single & is used for logical & operation,while && is used for comparison of conditions therefore it is false
7 is greater than 4 i.e 7>4=true
single & is used for logical & operation,while && is used for comparison of conditions therefore it is false
Geetha said:
1 decade ago
&& (comparision between two oprands) in the above two conditions are false so the ans is false.
&&: It check two conditions true the result is true otherwise false. If one condition is true other condition is false then again the ans is false.
&&: It check two conditions true the result is true otherwise false. If one condition is true other condition is false then again the ans is false.
Mayu said:
1 decade ago
Whats the use of && operator here?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers