Hi guys,
I have literally just started programming (yesterday)
as you can probably guess I already have a lot of questions.
Basically I was going through the tutorial and this came up:
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)
I didn't know how to work them out, so if you could explain that it would be great.
I know (or think) that the ! makes it the opposite of what it is but i'm still getting confused.
As for other things, is there a chart or something you can link me to that has all the definitions for terms like paranthesis and relational operators because i'm getting a bit overwhelmed.
Last thing:
What are some good 'first programs' to make?
I was thinking of making a guess the number game but do you have any suggestions for nice and simple things to make for a beginning programmer?
Thanks,