Q.10
The second expression (j – k) in the following expression will be evaluated
(i
+ 5)&&(j – k)
(A)
if expression (i + 5) is true.
(B)
if expression (i + 5) is false.
(C)
irrespective of whether (i + 5) is true or false.
(D)
will not be evaluated in any case.
Ans:
A
In
a compound logical expression combined with &&, the second expression
is
evaluated
only if first is evaluated in true.
No comments:
Post a Comment