A

Admin • 833.24K Points
Coach

Q. If we pass an array as an argument to a function, what actually gets passed?

  • (A) Value of elements in array
  • (B) First element of the array
  • (C) Base address of the array i.e., the address of the first element
  • (D) Address of the last element of array
  • Correct Answer - Option(C)
  • Views: 30
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

If we pass an array as an argument to a function – the base address of the array (the address of the first element) is passed to the function.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.