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 |
write a programming in c to find the sum of all elements in an array through function.
which type of aspect you want from the student.
Which built-in library function can be used to match a patter from the string?
Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com
What is the main difference between calloc () and malloc ()?
Write a C function to search a number in the given list of numbers. donot use printf and scanf
How to write a C program to determine the smallest among three nos using conditional operator?
What are the __date__ and __time__ preprocessor commands?
Explain the use of 'auto' keyword in c programming?
Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********
main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }
How a string is stored in c?