Which is this "||" symbol in c++ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

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

Do you know this??

27th Feb 2019, 3:25 PM
ADARSH
ADARSH - avatar
2 Respostas
+ 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