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...

what is the difference between : func (int list[], ...) or
func (int *list , ....) - what is the difference if list is an array and if also if list is a pointer

Answer Posted / vimal

Nothing,because ultimately pointer to the first element of
array is send to the function,therefore using both method
changes made in called function will affect the calling
function. In one first you indirectly reference the pointer
and in other you directly reference the pointer.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between the expression '++a' and 'a++'?

1153


What is wrong with this statement? Myname = 'robin';

1264


which is an algorithm for sorting in a growing Lexicographic order

1747


Explain how are 16- and 32-bit numbers stored?

1208


How do c compilers work?

1049


What is an array in c?

1001


Why is c so popular?

1118


What is volatile c?

959


Why is c called c not d or e?

1048


What is strcmp in c?

1018


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

1166


Why clrscr is used in c?

955


Explain 'far' and 'near' pointers in c.

1082


What is the function of this pointer?

1219


Describe the modifier in c?

1058