GATEverse
← GATE CSE 2016 Set 1

Q36

MCQ2 marks, −0.67

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.

Loading…