Computer Science, asked by sudhamaduri8605, 2 months ago

Different types of array ? How will you pass array to a function

Answers

Answered by MUNNABHAIYA007
1

Explanation:

To pass an entire array to a function, only the name of the array is passed as an argument. result = calculateSum(age); However, notice the use of [] in the function definition. This informs the compiler that you are passing a one-dimensional array to the function.

Answered by xXAbhiSharma45Xx
2

\huge{\underline{\red{\mathfrak{♡Answer♡}}}}

To pass an entire array to a function, only the name of the array is passed as an argument. result = calculateSum(age); However, notice the use of [] in the function definition. This informs the compiler that you are passing a one-dimensional array to the function.

Similar questions