What is pointers? BCA 2nd semester


 Definition of pointer:-

A pointer is a drive user define data type in C language. It store address of  another variable in computer memory. Pointer can be used to access and manipulate data stored in memory. 

 

  The Syntex of declaring pointers variable in C - language.

         data type*pointers variable

        int* p;

Example:- 

                     int a;

                     int*p;

                     p=& a;

Address of operator(&):- user can determine address of a variable with the help of the operator available in C. The operator immediately preceding a  variable return the address of the variable return the address of the variable associated within.

Advantage of using pointer:-

1). It is more efficient in handling arrays & data tables.

2). It can be used to return multiple value.

3). It support dynamic memory management operators.

4). pointer increase the execution speed.

5). It provides efficient tools for manipulate.

6). It reduces the length of program.

No comments:

Post a Comment

If you have any doubts, Please lets me know and Please Follow our Website