Question: 4 . [ 2 5 pts . ] Assume that the main function calls SUB 1 function, and parameter passing methods forformal parameters are as
pts Assume that the main function calls SUB function, and parameter passing methods forformal parameters are as follows: a is passedbyvalue, b is passedbyresult, c is passedbyreference,and, finally, d is passedbyvalueresult. What is printed when we run this application? Do not justprint the output. Show all the steps of execution.void SUBint a int b int c int da a ;b a ;c b;d d ;void mainvoidint w;int x;int y;int z;SUBw x y z;print w x y z;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
