#13. Let the function fun be defined as int fun (int *k) { *k +- 4; return 3. (*k) - 1; Suppose fun is used in a program as follows: void main () { int i - 10, j- 10, auml, sum2; suml - (1/2) + fun...


#13.<br>Let the function fun be defined as<br>int fun (int *k) {<br>*k +- 4;<br>return 3. (*k) - 1;<br>Suppose fun is used in a program as follows:<br>void main () {<br>int i - 10, j- 10, auml, sum2;<br>suml - (1/2) + fun (si):<br>sum2 = fun (6j) + (0/2);<br>What are the values of suml and sum2?<br>a. if the operands in the expressions are evaluated left to the right?<br>b. if the operands in the expressions are evaluated right to the left?<br>

Extracted text: #13. Let the function fun be defined as int fun (int *k) { *k +- 4; return 3. (*k) - 1; Suppose fun is used in a program as follows: void main () { int i - 10, j- 10, auml, sum2; suml - (1/2) + fun (si): sum2 = fun (6j) + (0/2); What are the values of suml and sum2? a. if the operands in the expressions are evaluated left to the right? b. if the operands in the expressions are evaluated right to the left?

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here