Need help understanding precedence


#1

Hello,
I was on 11. Generalizations and I did it and everything, but I don’t understand what the point of // ( 3 >= 3 && !(true || true) ) was ?? Like the first thing it tells you to do is:

“Use the precedence rules to help you evaluate the Boolean expression in the single line comment above the tricky variable.”

I don’t get it, I just added = false; after the sticky boolean and it worked

Thanks it advance!


#2

conditions always evaluate to either true or false, you had to manually solve the comparison provided in the comment and set the tricky variable accordingly


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.