Topics in Runtime Environments

Filter by year

Runtime Environments questions

Q36

GATE CS 2016 CS-1Runtime EnvironmentsMCQ2 marks−2/3 if wrong
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);}
Show answer without attempting

Answer: D

0/10 correct0 marks

Related topics in Compiler Design