posted 24 years ago
Hi Vineet,
The answer to the above question is only B and not D.
As for boolean OR operators, | and | | if either or both operands are true,the result is true and you will get result false, only if both the operands are false.
And for boolean AND operators, & and && if both the operands are true the result is true otherwise the result is false.
So, I agree with Jane suggestions....of writing the code and checking.
Good Luck!
Mukti