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
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What is p in text message?
How does struct work in c?
What is function pointer c?
Can we use any name in place of argv and argc as command line arguments?
How do you determine whether to use a stream function or a low-level function?
How do c compilers work?
What are valid operations on pointers?
What is strcmp in c?
What is sizeof int in c?
What does %c do in c?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
In C programming, what command or code can be used to determine if a number of odd or even?
What is the maximum length of an identifier?
Explain what is a stream?