Multiple choice

Arrays are passed as arguments to a function by some

  1. value

  2. reference

  3. both of the above

  4. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In C, arrays are passed to functions by passing the address of the first element, which is effectively passing by reference.