Math, asked by AnandiSiri121, 1 year ago

When an array of pointers is passed through a function, what actually is passed?

Answers

Answered by aashi2701
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