Pointers are identical to a variable but stores the address of another variable. The pointer’s data type will be the same as the data type of the variable. The call by reference methodarguments to a function copies the address of an argument into the formal parameter. A variable stores the value and pointer stores the address of a variable. You can visually see the difference in the example given below. A compiler must do these three things for a variable:
A function is a self-contained block of statements that performs a coherent task of some kind. A function prototype is a declaration of a function that specifies the function’s name and type signature (arity, data types of parameters, and return type), but discards the function body.
#pointers-in-c #pointers #c #c-programming #c++ #cplusplus