At run time there is no sure-fire way to tell which one is


Problem

1. Consider a procedure incr with two integer parameters. The procedure adds one to each parameter. Now suppose that it is called with the same variable twice, for example, as incr(i, i). If i is initially 0, what value will it have afterward if call-by-reference is used? How about if copy/restore is used?

2. Pascal has a construction called a record variant, in which a field of a record can hold any one of several alternatives. At run time, there is no sure-fire way to tell which one is in there. Does this feature of Pascal have any implications for remote procedure call? Explain your answer.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: At run time there is no sure-fire way to tell which one is
Reference No:- TGS02698769

Expected delivery within 24 Hours