720 views
0 votes
0 votes

2 Answers

0 votes
0 votes
The correct answer is 2,2

Even though activation record deletion deletes j variable, since we've already stored the memory location (address of j) in p variable of main, it's accessible even after deletion of activation record. Suggestions/improvements are welcomed
0 votes
0 votes
it should give compilation  error because function "foo" is not declared before its use.
 so option c is correct

Related questions

0 votes
0 votes
1 answer
1
ranarajesh495 asked Oct 9, 2018
571 views
If we are taking character as input then how we can check the character against a a range of numbers. Please explain
0 votes
0 votes
0 answers
3
2 votes
2 votes
3 answers
4
Shivani gaikawad asked May 3, 2018
612 views
what will be output printed?