How can array be passed to function ? Explain with example.
Answers
Answered by
6
The array can be passed to function by
using a reference
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.
Similar questions
Math,
5 months ago
History,
5 months ago
Science,
5 months ago
Computer Science,
10 months ago
Physics,
11 months ago
Math,
11 months ago
Social Sciences,
11 months ago