1.

Consider the following programProgram P2var n: int:procedure W(var x: int)beginx=x+1;print x;endprocedure Dbeginvar n: int;n=3;W(n);endbegin //beginP2n=10;D;endIf the language has dynamic scoping and parameters are passed by reference, what will be printed by the program?(A) 10(B) 11(C) 3(D) None of the above

Answer»


Discussion

No Comment Found

Related InterviewSolutions