operators
what is the result of 4&&3 operation
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jun 13, 2014, 6:50 AM
If both operands of the && operator are non-zero (as here), then the result is 1.
However, if one (or both) of the operands is 0, then the result is 0.
manikanthPosted Jun 13, 2014, 6:45 AM
VulpesPosted Jun 13, 2014, 6:42 AM
You can't apply the && operator to int operands.
Do you perhaps mean C or C++?
In those languages, the expression would have a non-zero value (typically 1) which corresponds to the bool value, true.