Question: Program must be done In C. For this assignment you will write two functions and test your functions in main. Include prototypes. Function 1- This
For this assignment you will write two functions and test your functions in main. Include prototypes. Function 1- This function should return void and take a float*, say ptr. In the body of the function, prompt the user for a float. Set the value ptr points to equal to the user input. Function 2 This function should return void and take an int*, say ptr. In the body of the function, prompt the user for an integer. Set the value ptr points to equal to the user input. In main, define an int and float variable. Call both functions using the int and float variables just defined. Print the values of the two variables after calling the functions. Sample Run: Enter a float: 3.14 Enter an int: 7 The float is 3.14 and the int is 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
