Question: Question 1 (45=20pt) Consider the following code and print the output if: procedure took (int a, int b, int c) start a=b+c; b=c+1; print (a,b,c);

 Question 1 (45=20pt) Consider the following code and print the output

Question 1 (45=20pt) Consider the following code and print the output if: procedure took (int a, int b, int c) start a=b+c; b=c+1; print (a,b,c); end function main start int i=5; int j=10; ink k=15; took (i,j,j+k); print (i,j,k); end 1. All parameters are call by value (CBV) 2. Call a,b by reference, and c by value 3. Call a, b by value-result and c by value 4. All parameters are call by name

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!