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 program to generate address labels using structures?
What is c programming structure?
what is call by value and call by reference
How can you determine the maximum value that a numeric variable can hold?
write a function to find whether a string is palindrome or not and how many palindrome this string contain?
Difference between Function to pointer and pointer to function
fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? }
What is memcpy() function?
write a c program to convert fahrenheit to celsius?
Here is alphabets : abcdefgh 1) how to reverse. as hgfedcba 2) after reversal, how to group them in a pair hg fe dc ba.
Explain the difference between #include "..." And #include <...> In c?
suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,------dec) we take integer value as an input .question is that the month which we analyz is from 0 to 11 bt if i enter 12 than how he again starts from begning and print jan