UMBC CMSC201, Computer Science I, Fall 1994
Sections 0101, 0102 and Honors
Tuesday November 29, 1994
Assigned Reading: 13.1 - 13.2
Handouts (available on-line): none
- Discussion of self-reference and what it has to do with pointers.
- Explained the pointer operators & (address of) and
* (de-reference). Also explained how to declare pointer
variables. Worked through some examples on the whiteboard.
- We looked at a simple program that uses pointers.
Program and sample run.
- A program that uses
pointers incorrectly. You are not allowed to assign
integer expressions or integer constants (except for zero)
to an integer pointer.
You are also not allowed to assign the address of a double
variable to an integer pointer. The compiler will complain
about syntax errors
in these situations.
Fri Dec 2 16:06:44 EST 1994
Richard Chang, firstname.lastname@example.org