GATEverse Practice, past papers & mock tests
GATE 2016 · CS1 - Forenoon
Programming & Data StructuresProgramminghardMCQ2 marks
What will be the output of the pseudo-code when parameters are passed by reference and dynamic scoping is assumed? a = 3;
c
void n(x) { x = x * a; print(x); }
void m(y) { a = 1; a = y - a; n(a); print(a); }
void main() { m(a); }
Save your progress

Related Programming & Data Structures PYQs