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?
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?
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.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
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.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?