Can u please help me in thinking the logic to write this code
How to swap two numbers
@vishesh2001 hey vishesh make a function which swap two numbers
go to this link
https://ide.codingblocks.com/s/146767 there is two concepts to swap the numbers the first one is using call by value and the second one call by reference I am using call by reference in the method the base address of the variable is passed which means that the changes will be reflect in the main as well as in function.
Could u plz explain the idea behind calling by reference and calling by value???
This will help me to think other problem also using this method.