What is && operator? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is && operator?

24th Dec 2016, 1:58 AM
Madhuvarma
Madhuvarma - avatar
2 Answers
+ 6
&& means 'and' operator. For example : if (x < 20 && y > 20) .... would mean : If x is smaller than twenty AND y is bigger than twenty... Other operators : || means 'or' == means 'equals' (use a single = for Booleans) < means less than (The one on the left is less than the one on the right) > means more than (The one on the left is more than the one on the right) => or >= would mean more than or equals to. <= or =< would mean less than or equals to. != means is 'not equals' to
24th Dec 2016, 2:04 AM
Wen Qin
Wen Qin - avatar
+ 2
and operator
27th Dec 2016, 2:46 PM
SAGAR SINGHA ROY
SAGAR SINGHA ROY - avatar