Question: (9 pts) Edit following C code, so variables mand n are changed after increase (m, n); function call. a. Output of the second print statement

 (9 pts) Edit following C code, so variables mand n are

(9 pts) Edit following C code, so variables mand n are changed after increase (m, n); function call. a. Output of the second print statement should be: "Values after increase m = 23 and n 45" b. Note: You are not allowed to use global variables! #include void increase (int, int); // function declaration void main() { int m = 22, n = 44; // variables declaration printf(" Initial values: m %d and n %d ", m, n); increase (m, n) ; // function invocation printf(" Values after increase: m = %d and n %d ", m, n); } // function definition void increase (int a, int b) { a += 1; b += 1; }

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!