Pointer Arithmetic
Before doing this lesson, you should read sections 6.5 and 6.6 of the text.
You should use level 4 of C-thru for this lesson.
We want to accomplish three things in this lesson. First, we want to explain
pointer arithmetic, which is a loose end left over from the last lesson.
Second, we want to explain one detail concerning arrays that is often confusing
for new C programmers. Finally, we want to show you one of the inherent
hazards of using pointers.
If you click below, I'll copy some example files to your directory.
Click here to copy files
Hamlet Project
hamlet@cs.utah.edu