Here function selectionsort(a,n) is a call by reference?

am i right.int a[n] is pointer and a in selectionsort(a,n) is address of a[0]

@dineshjani hey dinesh do not be so confuse about this thing but one thing always kept in your mind is that array always passed with their base address that is by reference so changes occurs in selectionsort method also reflect in the main function .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.