Sections 0101, 0102, 0103 and Honors, Fall 1995
Tuesday September 26, 1995
Assigned Reading: 4.1 - 4.5
Handouts (available on-line): none
- We discussed how to use the #define directive
to define constants in a C program. Here is a program and sample run that uses
the constant PI.
- Boolean expressions, && and ||
operators, and DeMorgan's Laws.
- Boolean values can be stored in Boolean variables.
Here is a program and
sample run that uses
- Short circuit evaluation. Here are some examples
that show the properties of short circuit evaluation.
Program short.txt and sample run.
Program short2.txt and sample run.
- Quiz 1.
Wed Sep 27 11:02:57 EDT 1995
Richard Chang, email@example.com