Question: USE C TO CODE 2/ Write a code that will read two integer numbers and then call a function (swap) to interchange their values. Use
USE C TO CODE
2/ Write a code that will read two integer numbers and then call a function (swap) to interchange their values. Use pointer concept and use the following function prototype: void swap (int *x, int *y); A sample run of the codes can be Enter two numbers: 34 82 New swapped data are 82 34
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
