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 |
wat is the meaning of c?
Tell us the use of fflush() function in c language?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
list the no of files created when c source file is compiled
Why clrscr is used after variable declaration?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Why does this code crash?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
What are operators in c?
main() { printf("hello"); fork(); }
What is the function of multilevel pointer in c?