Answers to Chapter 10 Review Questions ------------------------------------- 4. A mixture of C code and English. The English is used to represent parts of the program that have yet to be coded. 6. A token is a contiguous set of characters that stand together as a meaningful unit. 7. Local and global variables differ in their scope and lifetime. Local variables are available only to the function in which they are declared; global variables are available to all functions in the module in which they are declared. Local variables disappear when the function returns; global variables retain their values throughout the lifetime of the program. 8. Local variables are declared inside functions. Global variables are declared at the top of the program or module, outside any functions. 9. Local variables are available only to the function in which they are declared; global variables are available to all functions in the module in which they are declared. 10. You have to look at the entire program to understand where global variables are being modified. This often makes programs harder to debug. 11. As part of a variable declaration, the keyword "static" ensures that the variable can be referenced only within the current module. The keyword plays a similar role in the declaration of functions. If a function is declared as static, it can only be called from within that module. 12. Static initialization sets the value of a variable before program execution even begins. Dynamic initialization (e.g., via assignment statements) only takes effect when the program is run. Static initialization is most useful if a variable should have a particular default value that only a few clients might want to change.