So I've been learning for only a couple days, so please, be gentle.
I'm up to chap 2 (tutorial on this site) and the true/false (0-1) and the NOT, AND, OR stuff.
I'm going ok until I hit this spot and am quite confused as the tutorial didn't go into any detail about it (the code below). In english, can u please break down this so I can understand it.
So the above, I'm guessing here, but.. the ! is a NOT, so I am assuming that it is saying the 2 inside numbers are not equal? Or False? So would:Code:!(1 || 0) ANSWER 0.
The question I have is what is the exact meaning of this code? Why wouldn't we just put 1 > 0.Code:!(1 || 1) be 1?
I'm sure is is a really stupid question, but I can't understand why this code is the way it is. In the tutorial (on this site by the way) it doesn't go into any specifics of why they are like this.
And, just for kicks, can someone break down what this is?
I mean what the ????. The tutorial just jumped right into this. It didn't say where this would come in handy or in what context I would ever use this? Is it just an example or?Code:!( ( 1 || 0 ) && 0 ) Answer 1
Any help is muchly appreciated.