Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2016 Set 1
Questions

Q36

MCQ2 marks, −0.67Medium

What will be the output of the following pseudo-code when parameters are passed by reference and dynamic scoping is assumed?

a = 3;
void n(x) { x = x * a; print (x); }
void m(y) { a = 1 ; a = y - a; n(a); print (a); }
void main () { m(a); }
Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.