August 2002
Beginner
1122 pages
22h 1m
English
Now that we've cleared up the question of when different types of variables are initialized, let's continue with the distinction between global and local variables. You may be surprised that a programmer would accept the limitation of allowing certain variables to be accessed only in certain functions. Surely it's more powerful to be able to access anything anywhere. Isn't it?
Let me tell you a little story about the "power" of global variables. Unlike the one about the funny odometers, this one is true.
In the late 1970s, I worked for a (very) small software house where I developed a database program for the Radio Shack TRS-80 Model III computer. This computer was fairly ...
Read now
Unlock full access