How to Study Pointers in C prog?
pointers basically refer to the address of a variable where the acutall value is stored.
Pointers are as mind-bending as recursion. A reputable, and it's teaching of pointers is a good metric, book or site will explain them. The short and simple is what amit44chauhan said and some usage syntax. The pointer itself, which points to the starting memory location where a certain type of data is stored is declared as: int *intPointer; It could be assigned to point to int variable integer with the command: intPointer = &integer; /* the ampersand means address */ To refer to the value that the pointer points to: int foo = *intPointer; /* the asterick dereferences the pointer */ Dereference is what following the pointer to it's value is called.
Join our real-time social learning platform and learn together with your friends!