Consider the following code in some C-style language. Assume the writeln
function prints to standard output.
// global variables
int foo = 3;
int bar = 5;
void printmult(int bar){
int baz = foo * bar;
writeln(baz);
}
void test(){
int foo = 2;
int bar = 7;
printmult(4);
}
What does the function test
print if the language uses static scoping and pass by value



Answer :

Other Questions