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 are the salient features of c languages?
What is 02d in c?
Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.
Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms
What the advantages of using Unions?
Does c have circular shift operators?
What is the difference between i++ and i+1 ?(in terms of memory)
What is the mean of function?
inline function is there in c language?
What are the different types of pointers used in c language?
WHY DO WE USE A TERMINATOR IN C LANGUAGE?
What is the benefit of using #define to declare a constant?