i dont like spamming & im sure theres a post with this exact same question 100 times over but right now im 2 lazy to look, ty.
What are these comparing to?
Im learning c++ & from what i understand you are supossed to do a comparison of some kind then compare the comprisons:
A. !( 1 || 0 ) ANSWER: 0
B. !( 1 || 1 && 0 ) ANSWER: 0 (AND is evaluated before OR)
C. !( ( 1 || 0 ) && 0 ) ANSWER: 1 (Parenthesis are useful)
but up above it returns integers rather than a simple true or false, can someone explain this to me?
(!(1==0) && 0+1 > 0) ANSWER: false