Call by Reference — Study Resources & PYQs
Passing arguments using references or addresses.
- Estimated study time: 30 minutes
Study resources
- C Pass Addresses and Pointers - Programiz (Article) — Call by reference is simulated in C by passing an address. This page shows the swap-two-numbers example both ways, which is the standard exam question.
- 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.
- NPTEL — Programming and Data Structures, IIT Madras (Article) — Current NPTEL course covering C programming constructs, arrays, pointers, functions, recursion, searching and sorting.
Call by Reference previous year questions
- (a) Explain about call by value and call by reference with reference to functions. Write a function to swap the values between the variables using call by valu…
- (b) What is pointer? Explain how the pointer variable declared and initialized? Write a C program to swap two numbers using call by address(pointers or referen…
- (a) Explain the various string manipulation functions used in C. (10) (b) Differentiate between call by value and call by reference with the help of example. (…
- a) What is function parameter? Explain with example different types of parameter in C function. (10) b) Explain difference between call by reference and call b…
- (a) Distinguish between call by value and call by reference with the help of program. (10) (b) Write a program to read and print two matrices and also print ad…
- (a) Explain call by value and call by reference with suitable example. (10) (b) What is structure? Explain the syntax of structure declaration. Illustrate the…
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