why do we use pointer instead directly acessing the data?
Answers were Sorted based on User's Feedback
Answer / manish
We use the pointer instead of the because of the fast
access of the data as pointer provides direct memory access.
Also, soemtimes passing the ;large structure variable in
the function argument requires large memoy stack but by
passing the pointer to the structure inside the function
will reduce the stack size.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / jitendra mishra
As we know pointer shows the address of a particular variable in the memory space.and accessing variable by its name is a bit time consuming because there can have more than one variable of same name but there can not be same address for two different variables.So pointer is more accurate and quick.
| Is This Answer Correct ? | 0 Yes | 0 No |
write a program which counts a product of array elements lower than 10.
Explain the difference between exit() and _exit() function?
Write a c program using for loop in switch case?
Explain about the constants which help in debugging?
How can I find leaf node with smallest level in a binary tree?
What is oops c?
explain what is fifo?
Define the scope of static variables.
2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value
what is the use of a array in c
program to find the second largest word in a paragraph amongst all words that repeat more thn twice
What does a pointer variable always consist of?