Question: c++ Consider the following functions: void doIt (int &a, int b) a-a + 5; b=b+5 void doIt2 (int a, int&b) a +5; b+5 void doIt3
c++
Consider the following functions: void doIt (int &a, int b) a-a + 5; b=b+5 void doIt2 (int a, int&b) a +5; b+5 void doIt3 (int & a, int&b) a -a + 5; b+= 5 Fix any errors in the bodies of the above functions (without changing the first line of any function) and write a main program that prompts the user for two integer numbers (numl and num2). Then, the main program calls functions dolt, dolt2, and dolt3, each with numl and num2 as parameters. The main program will print the content of numl and num2 to the screen before any function is called and then again after each function is called. Add an addendum to the test plan to explain for each function the difference between a andb
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
