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
Why doesn't C support function overloading?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
How reliable are floating-point comparisons?
Is calloc better than malloc?
What are the rules for the identifier?
How many bytes are occupied by near, far and huge pointers (dos)?
In a header file whether functions are declared or defined?
Are the variables argc and argv are always local to main?
Can you please explain the difference between exit() and _exit() function?
What is p in text message?
What is meant by high-order and low-order bytes?
What do you mean by recursion in c?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Is there a built-in function in C that can be used for sorting data?
What is a structure member in c?