When passing an array to a function in C, what is actually being passed?

  • A pointer to the first element
  • The entire array
  • The size of the array
  • The value of the first element in the array
In C, when passing an array to a function, only a pointer to the first element is passed, allowing the function to access the entire array.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *