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 |
What is the size of structure in c?
What is the difference between exit() and _exit() function in c?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
which is the best antivirus and how to update it
How can I pad a string to a known length?
What is self-referential structure in c programming?
Explain why C language is procedural?
1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?
What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,i++); }
What do you understand by friend-functions? How are they used?
Tell me when is a void pointer used?
What is the use of #define preprocessor in c?