Hey all, this is my first post on the forum, so let me know if i am in the wrong spot. I am trying to teach myself C++ and have just started going through the tutorial here on the site, this is my first attempt at any type of programming. I have the Dev-C++ compiler which is working great, now I have a question, I just went through the 2nd tutorial on "if statements" and took the quiz thing here's the question
1. Which of the following is true?
A. 1
B. 66
C. .1
D. -1
E. All of the above
now of course A is true, and that's what i went with, but apparently the answer is all of them? can anyone clear this up for me? i understand that each value has the ability to return a true statement, is that what the question is meaning?
and also, in this line:
!( 1 || 1 && 0 )
when there's no parenthessis the 1 && 0 is looked at first equaling false, then 1 || 0 equaling true then !(1) equaling false, am i going about that right?