If we pass an array arr to a function abc like:
void abc(int *arr){}
Since we have used poiner to arr so this is a pass by reference ?? Please explain.
A simple doubt related to array passed to a function
hello @sahilkhan2312000131
…
in c++ , pass by reference are different than pass by pointer.
read difference between pass by reference , pass by pointer , pass by value for clarity
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.