CS 102 (Fall '03)
[Schedule]
[Examples] [Programs]
[Notes & Reference]
[Syllabus] [Lab
& TA] [Tests]
[Grades]
We've already seen some examples using pointers as we studied strings. This elaborates on those examples.
ptr0.c: first example of pointers
ptr1.c: pointer to array element goes out of bounds
ptr2.c: manipulate array elements using pointers
pArray.c: Reference an array using pointers on the left-hand-side of an assignment statement.
parameters.c: Show how array notation and pointers can be used interchangeably
parametersCPP.c: c++ program illustrating mixing pointers and arrays
referenceToPointer.c: Show how pointers themselves can be reference parameters
See online videos from Stanford explaining pointers.
[CS Dept] [UIC]
[Prof. Reed]