Pointer - STUDY NOTES

Post Top Ad

Pointer




Pointer is also a variable which can store the address of simple variable having same data type.

The concept of pointer is unique feature of C because it supports the following properties:-

     1.     Since the pointer work on address directly therefore it increases the run time efficiency of the program because the execution time get decreased.

     2.     The hardware programming can be done with the help of pointer.

     3.     The pointer supports the dynamic memory allocation and de-allocation feature by which the memory can be allocated and  de-allocated at run time.

     4.     The string data can be managed very efficiently through pointer because it saves the memory space.

Pointer and array:-

            Like simple variables, a complete array can also be managed by the pointer.


Pointer & String: -

Like number data, string data can also be managed very efficiently through pointer.

If we want to store more than one string in one character pointer variable then we need to create array of character of pointer.


Pointer & Function: -

The relation between pointer and function can be established in three ways.

     1.     Pointer as a function argument.
     2.     Function returning pointer.

     3.     Pointer to function.


     for detailed information download PDF


     downloading servers are below

     server 1 [media fire]

No comments:

Post a Comment

Post Bottom Ad