Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is pointer ? what is the use of pointer?

Answer Posted / gouse mohiddin

A Pointer is a variable which holds the memory address of
the another variable
pointers are used to save and find the memory address of
the another variable.
The syntax is as shown below. You start by specifying the
type of data stored in the location identified by the
pointer. The asterisk tells the compiler that you are
creating a pointer variable. Finally you give the name of
the variable.
type * variable name

Example:

int *ptr;
float *string;
Address operator:

Once we declare a pointer variable we must point it to
something we can do this by assigning to the pointer the
address of the variable you want to point as in the
following example:

ptr=&num;

This places the address where num is stores into the
variable ptr. If num is stored in memory 21260 address then
the variable ptr has the value 21260.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between procedural and declarative language?

1091


Explain the use of 'auto' keyword

1071


What is meant by errors and debugging?

1054


What is unary operator?

1050


How to implement a packet in C

2828


Differentiate between the expression “++a” and “a++”?

1201


What is the benefit of using an enum rather than a #define constant?

1170


what is the function of pragma directive in c?

1060


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

1194


Explain can static variables be declared in a header file?

1103


Why can’t we compare structures?

1225


Explain the properties of union. What is the size of a union variable

1129


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1073


Explain what will the preprocessor do for a program?

1003


Hi can anyone tell what is a start up code?

1999