CS 2213/2211
Advanced Programming Quiz 3, Spring 2005
Date and time: Quiz 2 will be given in the lecture class on:
2005-02-10, that is, Thursday, 24 February 2005, 9:30 am - 10:45 am, at the beginning or the end of class.
Topics:
Pointers
Basic pointer notation and concepts, including especially
the "address of" operator & and the "dereferencing" operator
*. The star is also used to declare pointers.
Also the material in the table titled "Pointer examples: pointers.c".
Swapping
Mainly just the second example titled "C Swap Program with Pointers -- Works"
that shows a function that will interchange the values stored at the
referenced locations of two pointer parameters.
Pointers and Arrays
All of this, with emphasis on the section
"Indexes versus pointers for arrays in C".
(Not much emphasis on the large section titled
"Array Basics (lecture notes by Mike Maltrud)", since it is mostly
standard array material that is the same in C and in Java.)