Question: Write a program to pass two numbers from main function to function foo, swap the numbers in a function foo and print the swapped
Write a program to pass two numbers from main function to function foo, swap the numbers in a function foo and print the swapped value in main function using call by value method.
Step by Step Solution
3.38 Rating (151 Votes )
There are 3 Steps involved in it
Below is an example of a simple C program that accomplishes what you described using call by value ... View full answer
Get step-by-step solutions from verified subject matter experts
