Pointers in C
assign address of some variable
initializing pointer variables (1)
incrementing a pointer
moves the pointer to the next memory address
decrementing a pointer
moves the pointer to the previous memory address
function pointers
have the capability to point to a function
data_type *pointer name
declaring pointer variables
increment (++) and decrement (--)
operations used on pointers
*p = *q
pointer assigning its value to another pointer
call-by-reference
pointer to the actual parameter
name of an array
pointer to the first element of an array
%p
print address of variable
address operator (&)
returns the memory address of a variable
pointer
special variable capable of storing address of the object it wants to point to
pointing to
store the base address of the object
indirection operator (*)
value of operator, deference operator; used to access the value stored at the location pointed by the pointer