Swap Function in C - C Program Swap Numbers in Cyclic Order Using Call by Reference
Learn C - C tutorial - c program swap numbers in cyclic order using call by reference - C examples - C programs
C Program Swap Numbers in Cyclic Order Using Call by Reference
- Call by reference is a method for passing data into the functions.
- The call by reference method of passing arguments to a function copies the address of an argument into the formal parameter.
- To exchange the values of the two integer variables swap() function is used.