When an array of pointers is passed through a function, what actually is passed?
Answers
Answered by
2
Note that the Swap function prototype could also be written like this: void Swap(int list[], int a, int b); The array notation in the prototype does not change anything. An array passed into a function is always passed by address, since the array's name IS a variable that stores its address (i.e. a pointer).
Similar questions
Math,
7 months ago
India Languages,
7 months ago
Physics,
7 months ago
Biology,
1 year ago
Math,
1 year ago