Pointers — Study Resources & PYQs
Pointer variables, addresses, dereferencing, and importance of pointers.
- Estimated study time: 75 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 structs and Pointers - Programiz (Article) — Same topic with a fuller example, including dynamically allocating structures. Links naturally into the dynamic memory allocation topic in Unit 6.
- C Structs and Pointers - W3Schools (Article) — A very short version with a try-it-yourself editor. Good for a quick refresher rather than first-time learning.
- Pointers in C - GeeksforGeeks (Article) — Covers declaration, dereferencing, why pointers matter, and their disadvantages (memory corruption, leaks, segmentation faults from uninitialised pointers). The advantages-and-disadvantages list is a…
- C Pointers - Programiz (Article) — Starts from what an address is and why scanf already uses & before introducing pointer syntax. The gentlest starting point for this unit.
- Dynamic Memory Allocation section - GeeksforGeeks tutorial (Article) — Covers malloc, calloc, realloc and free, plus memory leaks and the program's memory layout. A dangling pointer is what you get from using a pointer after free, which this section explains.
- C File Pointer - GeeksforGeeks (Article) — Explains what the FILE pointer actually is and how it moves through the file during reads and writes, and how each access mode positions it. Read alongside the Programiz page above.
Pointers previous year questions
Taught in these subjects
- Computer Programming — CST3101 · Government College of Engineering and Technology, Jammu