Welcome Guest.

1Answers

In the sorting algorithm, the pointer is used as the formal parameter and the actual participating array name is used as the actual and formal parameters. What is the same and different, please elaborate

Asked by: David Clark 195 views IT August 2, 2018

In the sorting algorithm, the pointer is used as the formal parameter and the actual participating array name is used as the actual and formal parameters. What is the same and different, please elaborate

1 Answers

  1. +4Votes  

    An array of arguments is an array, and a pointer is a pointer. There is only a pointer to the formal parameter, there is no array, even if the array is passed, or the formal parameter is written as an array such as int a[], the final result is a pointer.

    Kevin Allen- August 2, 2018 |