C Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 3)
3.
In C, if you pass an array as an argument to a function, what actually gets passed?
Value of elements in array
First element of the array
Base address of the array
Address of the last element of array
Answer: Option
Explanation:

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

Discussion:
31 comments Page 4 of 4.

Fuad said:   2 years ago
The right answer is c) the base address of the array.
(2)


Post your comments here:

Your comments will be displayed after verification.