groundFungus:
Some information on Arduino variables and scope.
Like most of the tutorial pages on Arduino.cc you should not rely on the information given here. Some are outright wrong e.g. the part about "variable rollover" using a (signed) int as an example.
There are many good C and C++ tutorials on the web. Google is your friend here