Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program #3 (Id: 168765) Write a program that does the following: .Declare three integer variables in main0, called var1, var2, var3 Perform three function calls:
Program #3 (Id: 168765) Write a program that does the following: .Declare three integer variables in main0, called var1, var2, var3 Perform three function calls: o o o getValues- should ask the user for input for three integers doubleValues -Should double the values of three integers displayValues - Should display the value of three integers Note: Do not use global variables and do not use reference variables. Do not use pointers in main, they don't need to be pointers in the main function (you will need the address operator) Note: Use pointer variables only where needed. Hint: Since two of the functions need to change the values, two of the functions should use pointers. Use the function names as provided Sample Output: Enter an integer: 5 Enter an integer: 4 Enter an integer: 3 Thevalues doubled are: 10 8 6 Press any key to continue
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