Passing parameters by reference — Study Resources & PYQs
Passing addresses of variables to functions so that the functions can modify the original data.
- Estimated study time: 30 minutes
Study resources
- C Pass Addresses and Pointers - Programiz (Article) — C only truly has call by value; call by reference is simulated by passing an address. This page shows the swap-two-numbers example both ways, which is the standard exam question.
- C Library Functions - GeeksforGeeks tutorial (Article) — Function-by-function reference organised by header file. Use it as a lookup when you need the exact signature of strcmp, toupper, pow or time rather than as a read-through.
Taught in these subjects
- COMPUTER PROGRAMMING — CST3101 · Government College of Engineering and Technology, Jammu