This module is one of critical module fo"C" programming language. A pointer is a variable that stores the memory address of another variable as its value. But Importance of Poiters lies fact they are one of the things that make C stand out from other programming languages, like Python and Java.
They are important in C, because they allow us to manipulate the data in the computer's memory. This can reduce the code and improve the performance. Students find very difficult to understand Pointers But It's not that difficult if understand step by step with examples.
This Module will cover below topics from Pointers topic-
- Pointer: Definition of pointer,
- Pointer declaration,
- Using & and * operators.
- Void pointer,
- Pointer to pointer,
- Pointer in math expression,
- Pointer arithmetic,
- Pointer comparison,
- Dynamic memory allocation functions — malloc, calloc, realloc and free,
- Pointer vs. Array,
- Array of pointer,
- Pointer to array,
- Pointers to function,
- Function returning pointer,
- Passing Pointer as Argument to function,
- Pointer to structure,
- Dynamic array of structure through pointer to structure.