+ 3

logical operations

what is the difference between operator "or" and operator"ll"?

30th Aug 2019, 7:24 PM
lakshmi tulasi javvadi
lakshmi tulasi javvadi - avatar
4 Answers
+ 1
In c and c++ you have to use || which is symbolic representation of 'or' . Or you can say in c and c++ here || stands for 'or' where or cant be read by compiler hence its show error when you write or so you have to use ||
6th Sep 2019, 12:52 PM
sushant
sushant - avatar
+ 2
Check this out https://stackoverflow.com/q/5998309/9341148 I think its precedence or something but the post should clarify it
30th Aug 2019, 7:29 PM
Minerals2016
Minerals2016 - avatar
+ 1
i get it
30th Aug 2019, 7:26 PM
lakshmi tulasi javvadi
lakshmi tulasi javvadi - avatar
+ 1
Or operrator can't be used in c but || can be used
2nd Sep 2019, 10:43 AM
Alaguraja M
Alaguraja M - avatar