CS330 Spring 2004 Lecture 18
George Tzanetakis
Some notes
Notes on imperative programming
Sample code
Sample C code
Makefile
Just type make and then run the program by typing intro in
the command prompt.
Suggested exercises
1) Download a c program from the web. Study how it works
and identify the language constructs it uses.
2) Write in C a program for calculating
the integer powers of a number. For example
power(2,3) would be 8. Compare your approach
with how you would write this prorgram in ML
Web resources
C language Frequently
Asked Questions