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 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

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 Computer Network Questions!