Pointer definition in C


• Pointer is a variable that holds the address of data rather than the data itself.
• Address is a memory location.
• Pointers provide facility to play with memory locations.
• Other languages like BASIC, COBOL, FORTRAN etc. do not provide such facility.
• Pointer points to something that is stored somewhere in memory.
• We can use pointer to point any variables viz. integer, character, float, array string, structure, file etc.
• Pointers are used to point to different data and different data structures.
• Pointers can also be initialized as an expression that involves the address of previously defined data of appropriate type.

No comments:

Post a Comment