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
What is void c?
Explain how do you declare an array that will hold more than 64kb of data?
In C, What is the #line used for?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Where static variables are stored in c?
Explain what’s a signal? Explain what do I use signals for?
What is a const pointer in c?
while initialization of array why we use a[][2] why not a[2][]...?
What is the explanation for cyclic nature of data types in c?
how do you execute a c program in unix.
How can I run c program?
Explain spaghetti programming?
What is stack in c?
What do you mean by dynamic memory allocation in c? What functions are used?
What is huge pointer in c?