Sections 0101, 0102, 0103 and Honors, Fall 1995
Thursday November 16, 1995
Assigned Reading: 11.4 - 11.6
Handouts (available on-line): none
Topics Covered:
- Discussed pointers and why we might need to have
variables to "talk about" variables.
- 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.
- Quiz 2.
Last Modified:
Thu Nov 16 17:55:07 EST 1995
Richard Chang, chang@gl.umbc.edu