what is pointer ? what is the use of pointer?
Answers were Sorted based on User's Feedback
Answer / m.karthiga
pointer is a variable it contains address of the another
variable..pointer saves the memory space then other
variables
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / naresh kaushik
pointer is a variable .but it is not a ordinary
variable.it contain the address of other variable and point
the memory locations dircetly.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Answer / rama krishna sidhartha
Pointer is the address of the another variable.
It saves the memory space of another variables.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sri harsha
pointer is lock to house.house is any data.mainly for
saving space,security we will use pointers.
Is This Answer Correct ? | 1 Yes | 1 No |
What is the use of static variable in c?
What are the languages are portable and platform independent?Why they are like that?
Explain Function Pointer?
input may any number except 1,output will always 1.. conditions only one variable should be declare,don't use operators,expressions,array,structure
How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)
Write a program to find given number is even or odd without using any control statement.
what is the meaning of 'c' language
Not all reserved words are written in lowercase. TRUE or FALSE?
how to exchnage bits in a byte b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3 please mail me the code if any one know to rajeshmb4u@gmail.com
What are unions in c?
Can we use any name in place of argv and argc as command line arguments?
Why is event driven programming or procedural programming, better within specific scenario?