Question: what is the difference between pass by value and pass by reference in c?
Answer: When passing a pointer to a function, you are still passing it by value. ... We can say when passing the int* into a function, that the int it points to was "passed by reference" but in truth the int was never actually passed anywhere at all - only the pointer was copied into the function.