Question: [4 points] Consider that you are writing a program in a hypothetical programming language. The following statement use integers a and res, and an

[4 points] Consider that you are writing a program in a hypothetical

[4 points] Consider that you are writing a program in a hypothetical programming language. The following statement use integers a and res, and an integer retur ning function fun that takes aninteger as parameter. The program has the following statement. You compile and run the program intwo different architectures. Note that both compilers of the language in these architectures are bug free. Considering the design decisions of the language, fill the following statement correctly. res = a + fun(a); When it is guaranteed that one will always get the same res value in both architectures. functions of the language have no side effects the design of the language has not fixed operand evaluation order but left it to the language implementor functions of the language have side effects the design of the language fixes an operand evaluation order

Step by Step Solution

3.41 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To ensure that the result of the statement will be consistent across different archit... View full answer

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 Programming Questions!