What is the difference between in && and AND operator? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

What is the difference between in && and AND operator?

24th Jun 2017, 10:31 AM
Jugnu
Jugnu - avatar
7 Answers
+ 3
&& is for boolean but AND is for binary
24th Jun 2017, 11:50 AM
Hetbo.net
Hetbo.net - avatar
+ 8
They operate with the same logic, just different representations of context as @Claudiu has pointed out. This question is quite funny to read out when I monologue in my head lol.
24th Jun 2017, 10:49 AM
Hatsy Rei
Hatsy Rei - avatar
+ 7
@Hatsy Rei, the question basically reads "What's the difference between 'and and and and' operator?" ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
24th Jun 2017, 12:10 PM
Leigh E. O.
Leigh E. O. - avatar
+ 6
Copyrights make it necessary to issue new names for the same thing. So as SQL uses AND other use the && double ampersand symbol. Result is the same so no big deal...
24th Jun 2017, 2:48 PM
๐Ÿ‡บ๐Ÿ‡ธ Anatoli๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ ,
๐Ÿ‡บ๐Ÿ‡ธ Anatoli๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ , - avatar
+ 3
In Ruby, && have higher precedence than AND
24th Jun 2017, 10:52 AM
SC Lee
SC Lee - avatar
+ 2
You have to put that in context. However "&&" and "AND" are the same thing, just that they are used is different programming language. Every language has it's one syntax.
24th Jun 2017, 10:40 AM
Claudiu Stefan Haidu
Claudiu Stefan Haidu - avatar
+ 2
these type of topics are very important for any programming language. so you can try to understand from video tutorials. go to youtube channel
24th Jun 2017, 1:52 PM
meherDev
meherDev - avatar