Pointer is the address of an object(i.e a specific memory location). it can refer to different objects at different times. Pointers contain memory addresses as their values.
pointers are used in C programs for different purposes.
pointers are used in C programs for different purposes.
- To return more than one value from a function(using pass by reference).
- To create and process strings.
- To manipulate the contents of arrays and structures.
- To construct data structures whose size can grow or shrink dynamically.