Pointers in C
A pointer is a variable that stores the memory address of another variable.
Example
int number = 10;
int *ptr = &number;
Here:
&numbergives the address of number.ptrstores that address.*ptraccesses the value stored at that address.
Pointers are important for arrays, functions, dynamic memory and data structures.