Untitled

we used call by value, so their is no change in int value of main function. the value will only implement in copy.


& → address of operator

*→ value of address

declaration of address is with the help of pointer ( int *p)

we used call by reference, so the numbers swapped

Untitled


Ques → what is the difference between call by value (copy of data) and call by reference (address of data)