Question: Consider the following function. Suppose fun is used in the following stub: i : = 8 ; sum 1 : = ( i 2 )
Consider the following function.
Suppose fun is used in the following stub:
:;
sum : fun;
:;
sum : fun ;
a What are the values of sum and sum if the operands in the expressions are evaluated from
left to right?
b What are the values of sum and sum if the operands in the expressions are evaluated from
right to left?
Note that the parameter is passed by reference ie its address is passed to the function
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
