CS 3304 Homework #3
Date Assigned: September 17, 2003
Date Due: September 24, 2003, in class, before class starts
- (10 points) Problem 9 of Chapter 5 in your textbook.
- (10 points) Problem 10 of Chapter 5 in your textbook.
- (20 points) The C language makes a distinction between
a declaration and a definition. A declaration binds
data type but not location, while a definition binds both data type
and location. For each of the following, state whether it is a definition
or a declaration.
- typedef in C
- Pascal type declaration
- Pascal variable declaration
- Pascal forward declaration
- (5 points) Find a language where there is no distinction between
global variables and those local to the main program. Is this distinction
useful? Why/why not?