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
Social Sciences,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Physics,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago