Call By Reference and Call By Pointer : Can you Spot the Difference :P

The topic of Confusion among most of the beginners and even mine!

Can Someone PLEASE explain the difference between the two !


There are tons of resources online if you even search the first line of your question.

OP shows lack of basic research skills. If you have some genuine problem then you will specify exactly where you have the problem. Not the whole topic. Google it up first.

1 Like

.call by reference is the changes are reflected back to the original values.

.call by pointer. … Inside the function, the address is used to access the actual argument used in the call. This means that changes made to the parameter affect the passed argument. To pass the value by pointer, argument pointers are passed to the functions just like any other value.