I understand that you can have statements like (5>7) and it would be the same as 0 because it is false but how can you have a statement like (5||7) What does this even mean?
Attachment 15355
Printable View
I understand that you can have statements like (5>7) and it would be the same as 0 because it is false but how can you have a statement like (5||7) What does this even mean?
Attachment 15355
Why not create a simple program, type in the expression and work it out?
Everything to the right of 6 evaluates to 0 by the way.
n < n is always false (ie zero)
Anything multiplied by zero is zero
If either size of && is zero, the whole thing is zero.
And so on.
Do you understand the meaning of boolean logic operators? If they're quizzing you about it, they must have mentioned it at some point in the course thus far.