












































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













































Basic Pointers
Why Have Pointers?
Pointer Dereference
Pointer Assignment
Shallow Copying
Deep Copying
Bad Pointers
Bad Pointers
Pointer Variables
The & Operator — Reference To
The * Operator — Dereference
Example Pointer Code void PointerTest() { // allocate three integers and two pointers int a = 1; int b = 2; int c = 3; int* p; int* q; // Here is the state of memory at this point. // T1 -- Notice that the pointers start out bad...