0

What does && mean in C++?

I’m going through the C++ course and in the comments, some users were using “&&” in their codes. Can someone explain to me what that is under the concept of if and else statements? Much appreciated.

10th Sep 2018, 12:25 AM
Michael
Michael  - avatar
2 Answers
+ 6
Michael && is a boolean operator. It means it is only true if both statmenys are true, otherwise it is false. Check this out for more info http://www.cplusplus.com/doc/boolean/
10th Sep 2018, 12:45 AM
Manual
Manual - avatar
+ 3
&& is the logical AND operator!! For more you can visit the site:https://msdn.microsoft.com/en-us/library/c6s3h5a7.aspx
10th Sep 2018, 12:47 AM
AL Araf
AL Araf - avatar