What about a priority of using and,or? | Sololearn: Learn to code for FREE!

0

What about a priority of using and,or?

2/10/2017 3:02:14 PM

Евгений Гришенко

2 Answers

New Answer

+1

Basically the priority is for the AND operator but it depends on the programming language. Through my entire experience, I've always noticed that the expressions are evaluated by giving the priority to AND (&&). But if you are not convinced and want to be cautious, I recommend you to use the parentheses.

+1

And or, if else, do while, the general rule is true false.