Question: The following code does not perform as expected. What is happening? Fix the code so that it performs the task correctly. [6 marks] int
The following code does not perform as expected. What is happening? Fix the code so that it performs the task correctly. [6 marks] int main() { } int num1 = 13; int num2 = 7; numberModifier (num1, num2, 3); cout < < "The MODIFIED value of number one is " < < num1 < < endl; cout < < "The MODIFIED value of number two is " < < num2 < < endl; void numberModifier (int a, int b, int modifier) { a = a/modifier; b = b modifier; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
