Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing an array as a function argument.Help needed.

Status
Not open for further replies.

DazedNConfused

Programmer
Mar 18, 2002
8
US
In book it says that arrays cannot be passed by value to parameters of a function,but then in example it passes an array to an array parameter .I understand if you pass adress of an array to a pointer parameter,but how can you pass an adress to an array or do you pass something else?And to confuse me even more,when he explains why square brackets are empty,he says "THE SIZE OF THE FIRST DIMENSION OF AN ARRAY IS NOT PART OF ITS TIPE."Can someone please explain to me what he meant?

double x(double array[])




I thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top