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


Please Help Members By Posting Answers For Below Questions

Why doesn't C support function overloading?

1624


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

611


How reliable are floating-point comparisons?

632


Is calloc better than malloc?

584


What are the rules for the identifier?

677






How many bytes are occupied by near, far and huge pointers (dos)?

680


In a header file whether functions are declared or defined?

633


Are the variables argc and argv are always local to main?

576


Can you please explain the difference between exit() and _exit() function?

598


What is p in text message?

544


What is meant by high-order and low-order bytes?

658


What do you mean by recursion in c?

633


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

670


Is there a built-in function in C that can be used for sorting data?

749


What is a structure member in c?

552