Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

1175


What does void main () mean?

1230


What are the advantages of c language?

1088


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2148


What is a class c rental property?

1089


What is difference between && and & in c?

1102


Is c weakly typed?

1018


Is it acceptable to declare/define a variable in a c header?

1112


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1728


What is the difference between fread buffer() and fwrite buffer()?

1168


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1216


Describe static function with its usage?

1202


What is the difference between procedural and functional programming?

1072


Why c is a mother language?

1026


Why pointers are used?

1072