retagged by
732 views
1 votes
1 votes
Find the output of the below program in case of Dynamic Scoping with call by need evaluation method

int x=10,y=10;

main()

{

int x=2;

int y=3;

fun1(x+y,5);

printf("x");

}

fun1(int z,int k)

{

k=z+k;

}
retagged by

1 Answer

Related questions

0 votes
0 votes
0 answers
2
Gate Fever asked Nov 26, 2018
885 views
what should be the output for call by name and call by copy restore??i know the basic meaning of call by name and call by copyrestore but am unable to solve the question!...
0 votes
0 votes
1 answer
3