Question: c++ Consider the following functions void doIt (int &a, int b) void doIt2 (int a, int& b) b+5 void doIt3 (int & a, int& b)

c++c++ Consider the following functions void doIt (int &a, int b) void

Consider the following functions void doIt (int &a, int b) void doIt2 (int a, int& b) b+5 void doIt3 (int & a, int& b) 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 and b

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!