Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started