A function which uses call by value can only be (only one answer please)
For each of the following parameter passing methods, say whether a change on the formal parameter can affect the value of the actual parameter (assuming that the latter is a variable) or not
Consider the following procedure and fragment of code in C++ like. Assume that y is a global variable.
void p(int ... x){ x = x+1; y = y+2; cout << x; } ... y = 1; p(y); ...What is the value printed by the instruction cout << x; under each the following parameter passing methods:
In a stack-based implementation of a programming language, the stack is used during the execution to dynamically allocate and deallocate storage for (only one answer, please)