1.

The reserved memory or private space of the subroutine gets deallocated when _______(a) The stop instruction is executed by the routine(b) The pointer reaches the end of the space(c) When the routine’s return statement is executed(d) None of the mentionedThis question was addressed to me during an online exam.This interesting question is from Parameter Passing and Stack Frame topic in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Right answer is (C) When the routine’s return STATEMENT is executed

Explanation: The work space ALLOCATED to a subroutine gets deallocated when the routine is COMPLETED.



Discussion

No Comment Found

Related InterviewSolutions