Array passed as an argument to a function is interpreted as
A.Address of the array.
B.Values of the first elements of the array.
C.Address of the first element of the array.
D.Number of element of the array.
Answers
Answered by
8
Hello mate
here's your answer
¤¤¤¤¤¤¤¤¤¤¤¤¤
Option C✔✔
¤¤¤¤¤¤¤¤¤¤¤¤
Hope it helps you
here's your answer
¤¤¤¤¤¤¤¤¤¤¤¤¤
Option C✔✔
¤¤¤¤¤¤¤¤¤¤¤¤
Hope it helps you
Answered by
2
Array passed as an argument to a function is interpreted as address of the first element of the array.
C. Address of the first element of the array. – This is the right answer.
The function calls in main() pass the name of the array, exam_scores, as an argument because the name of an array in an expression evaluates to a pointer to the array.
Its type is, therefore, int *, and a called function uses this pointer (passed as an argument) to indirectly access the elements of the array.
Similar questions
Computer Science,
7 months ago
Math,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
English,
1 year ago
Science,
1 year ago
English,
1 year ago