When an Array passed as an argument to a function, it is interpreted as

Options
- Number of element of the array
- Address of the array
- Address of the first element of the array
- Values of the first elements of the array


CORRECT ANSWER : Address of the first element of the array

Discussion Board
Passing array as argument to function-

-Answer is, Address of the first element of the array.

-While passing arrays as arguments to the function, only the name of the array is passed (,i.e, starting address of memory area is passed as argument).

Syntax: void fname(data_type arr_name[])

e.g float average(float age[])


Sapna Tongase 02-16-2017 06:50 AM

c

c

raghavendra 03-12-2015 05:16 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement