What is the value of $X$ printed by the following program?
program COMPUTE (input, output);
procedure FIND (X:real);
i think ans should be A.
as per call by value concept. $X$ in the procedure FIND is a local variable. no change will be refleced in global var $X$.
@Arjun sir . @Shaik Masthan..by static scoping..which is the default case...why not the answer is square root 2... since variable definition is not found in local scope so global variable is considered...
In similar ques ..we have used this feature static scoping https://gateoverflow.in/43603/gate1991-09b