why do we use pointer instead directly acessing the data?
Answer Posted / 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 |
Post New Answer View All Answers
How can I find out how much free space is available on disk?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
How can I avoid the abort, retry, fail messages?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
Why c is called object oriented language?
what are bit fields? What is the use of bit fields in a structure declaration?
Can a pointer point to null?
Why do we use namespace feature?
What will be your course of action for a push operation?
How to define structures? ·
What is c basic?
What are the features of c languages?
Are the expressions * ptr ++ and ++ * ptr same?
What is main () in c?
Can you mix old-style and new-style function syntax?