Pointers
Notes for the required material
- These notes can be purchased in the Student Union Copy Center at cost
- Pointers in Pascal (Leestma & Nyhoff Section 16.2): [PowerPoint]
[Acrobat]
Optional teaching material
Background / Sources of additional information
- Pascal Programming and Problem Solving by Leestma S. and Nyhoff L. 4th
Edition (Macmillan Publishing Company).
- Pascal an Introduction to the Art and Science of Programming by Savitch
W.J. (The Benjamin / Cummings Publishing Co., Inc.).
- The link to the online
documentation for the GNU Pascal compiler (since you will be using the GNU
Pascal compiler 'gpc'). You may also be interested in browsing the rest
of the site
as well.
Teaching Tips
Some students may have already heard how difficult it can be to work with
pointers. Although this can be the case if one doesn't know what they are
doing, if a programmer keeps in mind the two main points stressed in the notes
(pointers contain addresses and keeping straight whether the program is dealing with the pointer or
what the pointer points to) then they should find that pointers aren't as difficult as they might have heard.