Operators
what is the result of 4&&3 operation
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jun 13, 2014, 2:42 AM EDT
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.
manikanth6 reputationPosted Jun 13, 2014, 2:45 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jun 13, 2014, 2:50 AM EDT
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.