409 views
0 votes
0 votes
what will be the output if z is passed as a) call by value b) call by reference .Please Explain also.

z: integer

recur(x)

{

if(x<=40)then

{ x=x+z;

recur(x);

z=x+10;

}}

main()

{

z:=10;

recur(z);

write(z);

}

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
2
Arun Rout asked Jan 7, 2019
737 views
#include<stdio.h>int fun(int arr[]){ arr=arr+1; printf("%d",arr[0]);}int main(void){ int arr ={10,20}; fun(arr); printf("%d",arr[0]); return 0;}A.COMPIL...
0 votes
0 votes
1 answer
3
Balaji Jegan asked Nov 15, 2018
1,337 views
Predict the Output for both the snippets for the following:1. Call by Value2. Call by Reference3. Call by Need4. Call by Name5. Call by value Result/Call by value Return(...
0 votes
0 votes
0 answers
4
Rahul_Rathod_ asked Oct 3, 2018
531 views
from below list of parameter passing techniques, which parameter passing technique we can implement in c?1) call by value2) call by refference3) call by value result4) ca...