A function which uses call by name can be (only one answer please)
For each of the following parameter passing methods, say how many times the actual parameter will be evaluated. The answer has to be either : (a) never / (b) exactly once, at the moment of the call / (c) at most once, during the execution of the body / (d) an arbitrary number of times (depending on the body), during the execution of the body / (e) once at the moment of the call and an arbitrary number of times during the execution of the body
Consider the following procedure and fragment of code in C++ like, where y is declared globally:
void p(int ... x){ x = x+1; y = y+2; } ... y = 1; p(y); cout << y; ...What is the value printed by the instruction cout << y; under each the following parameter passing methods:
The lifetime of a local variable is