Which is this "||" symbol in c++ | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Which is this "||" symbol in c++

Do you know this??

27th Feb 2019, 3:25 PM
ADARSH
ADARSH - avatar
2 ответов
+ 2
|| means OR in C++. If the compiler were to evaluate 2 < 1 || 3 > 2, it will return true as the answer, since the latter is true. An OR statement is true if any of them is true.
27th Feb 2019, 3:59 PM
Ah Zong
Ah Zong - avatar
+ 2
Thanks for helping me out 😊😘
27th Feb 2019, 4:00 PM
ADARSH
ADARSH - avatar