Lecture overview -- Keyboard shortcut: 'u'  Previous page: Functions and parameters -- Keyboard shortcut: 'p'  Next page: C Program organization -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    From C to C++ - slide 23 : 29

Call-by-reference parameters via pointers
A call-by-reference parameter in C is a pointer passed as a call-by-value parameter
swap.c
A C program with a swap function.
C++ offers a reference type that establishes an alias to an existing location in memory