Home > Article > Backend Development > What does && mean in c language?
&& is a symbol used in programming. Is the logical (conditional) AND.
In the C language && is a binary operator, which represents the AND operation. When the expression or variable given on the left is 0, the right side is no longer calculated and the entire expression is zero.
How to use it as a logical operator:
x&&y
Function description: "Conditional AND": x and y are both true, and the value is true, Otherwise, the value is false
& and && both require the values of both operands to be true before the value is true, but there is still a difference between the two operators:
How to use is int&& rx=x;
Recommended: "c Language Tutorial"
The above is the detailed content of What does && mean in c language?. For more information, please follow other related articles on the PHP Chinese website!