Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

In C, if you pass an array as an argument to a function, what actually gets passed?

Question: In C, if you 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

[D].

Address of the last element of array

Answer: Option C

Explanation:

The statement ‘C’ is correct. When we pass an array as a funtion argument, the base address of the array will be passed.