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=#
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
Explain built-in function?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What does 4d mean in c?
Is it cc or c in a letter?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What is c system32 taskhostw exe?
What are variables c?
What are preprocessor directives in c?
How does normalization of huge pointer works?
What does 3 mean in texting?
What is the use of bit field?
Why c is called procedure oriented language?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Explain 'bit masking'?