Exam 2 Exam 2 Regrading Average: 69 TA: Fardad Office hours: MW 2:00 PM – 4:00 PM Copyright © 2008 W. W. Norton & Company. All rights reserved.
Examples Example 1 Demonstrate the use of reference operator Copyright © 2008 W. W. Norton & Company. All rights reserved.
Examples Example 2 Demonstrate the binding of pointers to the variables Copyright © 2008 W. W. Norton & Company. All rights reserved.
Examples Example 2 (continued) Demonstrate the binding of pointers to the variables Copyright © 2008 W. W. Norton & Company. All rights reserved.
Examples Example 3 Swapping two variables Copyright © 2008 W. W. Norton & Company. All rights reserved.
Examples Example 4 Pointer addresses in arrays Copyright © 2008 W. W. Norton & Company. All rights reserved.
Examples Example 5 Pointer arithmetic Copyright © 2008 W. W. Norton & Company. All rights reserved.
Examples Example 6 Pointer indexing Copyright © 2008 W. W. Norton & Company. All rights reserved.
Examples Example 7 Passing pointers as parameters Having multiple “return” values Copyright © 2008 W. W. Norton & Company. All rights reserved.
Examples Example 8 Passing pointers as parameters Having multiple “return” values Copyright © 2008 W. W. Norton & Company. All rights reserved.