Language is C, please answer according to parameters, need ASAP. Thank you! Write two functions, main and question_1. The main function is the start of your program, and question_1 passes in a double and and a pointer of an integer. question_1 does not have a return type. In the main function, create an integer with the value of 8. Call question_1 and pass in the value 5.75 as the double and the value of the integer. Afterwards print out the be value of the integer. In the function question_1, add the double value to the integer. HINT: You will need to cast the double in order to add them together. When running this program, your end result should print out the value 13. Don't trick the program to just print 13, because there is no points assigned here, instead all the points are in the process of getting to 13.
Language is C, please answer according to parameters, need ASAP. Thank you!
Write two functions, main and question_1. The main function is the start of your program, and question_1 passes in a double and and a pointer of an integer. question_1 does not have a return type.
In the main function, create an integer with the value of 8. Call question_1 and pass in the value 5.75 as the double and the value of the integer. Afterwards print out the be value of the integer.
In the function question_1, add the double value to the integer. HINT: You will need to cast the double in order to add them together.
When running this program, your end result should print out the value 13. Don't trick the program to just print 13, because there is no points assigned here, instead all the points are in the process of getting to 13.
Step by step
Solved in 2 steps with 1 images