Assume that the boolean variables a and b have been declared and initialized. Consider the following expression.
(a && (b || !a)) == a && b
Which of the following best describes the conditions under which the expression will evaluate to true?
A Only when a is true
B Only when b is true
C Only when both a and b are true
D The expression will never evaluate to true.
E The expression will always evaluate to true.



Answer :

Other Questions