B. changes to global variables and data structures
C. code defining the action of the function
D. compiler directives
E. control constructs
F. data fences
G. data gateways
Use the directory class-samp to answer these questions.
1. Study the program simp.c. Now execute it by typing simp.o. Can you explain the
2. Now do the same with simp2.c and simp2.o. Can you explain the results?
3. Type g+ s
fray.c - operations on mixed classes
cfw_ multiplying a fraction times an array class
1. The operator must be declared as a friend.
2. The operator must be declared under both classes.
3. To allow forward reference we must declare our intention t
For questions 1-51, use the Word Bank and write the letter of the correct answer in
the left hand margin.
1. A C program is a collection of _.
2-4. In a C program, every function except main must be:
5-6. A function defin
CIS136 - Intro Lecture
The Management of Complexity
Much of the development of computer science over the past 50 years is best
understood from the standpoint of the concept known as the management of
complexity. With the exception of very simple programs,
1. Write a program to read 12 numbers from a file into a 3 x 4 array and into a 6 x 2
array. Print out each array, first row by row, then column by column. Assume that the
first index is the row, the second is the column.
2. Run the Collatz pr