Call by Value — Study Resources & PYQs
Passing arguments using call-by-value semantics.
- Estimated study time: 30 minutes
Study resources
- C Pass Addresses and Pointers - Programiz (Article) — C only truly has call by value. This page shows exactly what happens to a copy of the argument inside the function.
- Pass by Value vs Pass by Reference in C (GeeksforGeeks) (Article) — Side-by-side comparison of call-by-value and call-by-reference with a classic 'swap two numbers' example demonstrating the difference in behaviour.
- C Functions section - GeeksforGeeks tutorial (Article) — Covers prototypes, definitions, calls and return types with examples. Understanding why a prototype is needed before the call is the key idea here.
- NPTEL — Programming and Data Structures, IIT Madras (Article) — Current NPTEL course covering C programming constructs, arrays, pointers, functions, recursion, searching and sorting.
Taught in these subjects
- COMPUTER PROGRAMMING — BCST11 · Government College of Engineering and Technology, Jammu
- FUNDAMENTALS OF PROGRAMMING USING C — BCST21 · Government College of Engineering and Technology, Jammu
- Computer Programming — BCST11 · Government College of Engineering and Technology, Jammu
- Computer Programming — CST3101 · Government College of Engineering and Technology, Jammu
- Fundamentals of Programming Using C — CST3201 · Government College of Engineering and Technology, Jammu