X hits on this document

168 views

0 shares

0 downloads

0 comments

29 / 63

Copyright ©2004 Pearson Addison-Wesley. All rights reserved.

8-29

Alternative Formats of Array Arguments

fill_array(x, 5, 1)  is the same as fill_array(&x[0], 5, 1).

This call may lead to misunderstanding of the reader.

In the declaration for function fill_array, we can declare the array argument as either

int list[] or int *list.

If you wish to prevent the modification of the array argument,  you can write

fill_array(const int list[], …)

Document info
Document views168
Page views168
Page last viewedSat Dec 10 06:30:29 UTC 2016
Pages63
Paragraphs754
Words4119

Comments