int Binarysearch(int a[],n){
…
…
…}
In the above code, is it call by reference method of passing arguments or call by value?
please explain in detail. I have lots of confusionsin it.
Arrays and pointers
Hey @Tiwary725
Passage of n is by value.
For array see https://stackoverflow.com/questions/24057085/is-c-array-passed-by-reference-or-by-pointer?rq=1
If your doubt is resolved please mark it as closed.