C Overview
This class will cover the basic syntax of C including
- Elements of a program
- Variables and arithmetic expressions
- Variable names
- Data types and sizes
- Constants
Because the program development process is so different from what you may be used to in CSC 151, we will also discuss how to compile and run C programs.
Finally, we also discuss how to print files from the command line
via lpr.
Textbook Readings
- King: Chapters 1-2, pages 1-32, OR
- K&R: Intro., 1.1-1.2, 2.1-2.3
First program in C
Read this annotated
quarts.c program.
In class
In class, we will discuss this
temperature.c program
and two similar programs expressed in
Scheme,
temperature-conversion-1.scm
and
temperature-conversion-2.scm
