Outline Why pointers? Pointers as parameters vs Reference parameters Relationship between pointers and arrays Passing arrays to functions Pointer Arithmetic 2
3 Pointers as Parameters Pointers are passed by value. The address stored in one pointer variable (the actual argument) is copied to the another pointer variable (the formal parameter). Passing pointers allow us to emulate the effect of "pass by reference". When the callee receives the memory address, the callee can access the data stored at that memory address.
has intentionally blurred sections.
Sign up to view the full version.