X hits on this document

222 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 views222
Page views222
Page last viewedSun Jan 22 16:38:07 UTC 2017
Pages63
Paragraphs754
Words4119

Comments