Computer Science, asked by Swupong, 10 months ago

passing array to function​

Answers

Answered by KokilaAbhishek
1

Explanation:

Passing array to function using call by reference

When we pass the address of an array while calling a function then this is called function call by reference. When we pass an address as an argument, the function declaration should have a pointer as a parameter to receive the passed address.

Answered by vijaytheboss
1

Answer:

To pass an array as a parameter to a function, pass it as a pointer (since it is a pointer). For example, the following procedure sets the first n cells of array A to 0.

Similar questions