English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

When an array is passed to a function, is only the address of the array is passed to the function?
and is it true when an array is passed to a function, a copy of the elements is made and passed to the function to manipulate.

this is for C programming

2007-05-17 01:40:13 · 1 answers · asked by sammy 2 in Computers & Internet Programming & Design

1 answers

only the address of the array is passed to a function and NO copies of the elements are made or passed.

you can pass copies of individual elements within the array though.

so the first question is true, the second is false.

2007-05-18 01:15:13 · answer #1 · answered by justme 7 · 0 0

fedest.com, questions and answers