Question: Problem 2: Develop a C program that swaps the values of two floats. Your program should: a) b) Ask the user to enter two real
Problem 2: Develop a C program that swaps the values of two floats. Your program should: a) b) Ask the user to enter two real numbers, which are stored in a, b. Call a function named swap that swaps the values of a and b. This function has the following prototype void swap (float pa, float p b) Sample Output: nput: Enter a and b: 12.84 34.2 Output: a 34.20, b-12.84
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
