Download presentation
Presentation is loading. Please wait.
1
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.
2
Examples Example 1 Demonstrate the use of reference operator
Copyright © 2008 W. W. Norton & Company. All rights reserved.
3
Examples Example 2 Demonstrate the binding of pointers to the variables Copyright © 2008 W. W. Norton & Company. All rights reserved.
4
Examples Example 2 (continued)
Demonstrate the binding of pointers to the variables Copyright © 2008 W. W. Norton & Company. All rights reserved.
5
Examples Example 3 Swapping two variables
Copyright © 2008 W. W. Norton & Company. All rights reserved.
6
Examples Example 4 Pointer addresses in arrays
Copyright © 2008 W. W. Norton & Company. All rights reserved.
7
Examples Example 5 Pointer arithmetic
Copyright © 2008 W. W. Norton & Company. All rights reserved.
8
Examples Example 6 Pointer indexing
Copyright © 2008 W. W. Norton & Company. All rights reserved.
9
Examples Example 7 Passing pointers as parameters
Having multiple “return” values Copyright © 2008 W. W. Norton & Company. All rights reserved.
10
Examples Example 8 Passing pointers as parameters
Having multiple “return” values Copyright © 2008 W. W. Norton & Company. All rights reserved.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.