Pointers Notes
Pointer A pointer is a variable that points to another variable . This means that it holds the memory address of another variable. Put another way, the pointer does not hold a value in the traditional sense; instead, it holds the address of another variable. It points to that other variable by holding its address. Because a pointer holds an address rather than a value, it has two parts. The pointer itself holds the address. That addresses points to a value. There is the pointer and the value pointed to. · Since ptr is a variable, which contains the address of an integer variable var , it can be declared as: int *ptr; where ptr is called a pointer variable . · Declaring pointer variable is quite similar to declaring a normal variable but before insert a star “*‟ operator before it. SYNTAX data_ type * pointer_name; Where, 1. The a...