1,004 views
5 votes
5 votes
With reference to the return instruction. Which of the following statement is / are true?

1. The instruction can be used only to take the flow of control back to the program from which it initially jumped.

2.The instruction retrieves the address using the current stack pointer from the stack and alters the control to the program pointed to by it.

3. The instruction works only if the registers used in the main program have been pushed and later popped before its execution.

4.The instruction can be used only in conjunction with the call instruction.

A. 1st and 2nd

B. 2nd only

C. 1st, 2nd and 4

 D. All the statement are tru

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
abhishekmehta4u asked Jul 19, 2018
173 views
1 votes
1 votes
1 answer
2
shikharV asked Jan 18, 2016
230 views
Given explanation:I read somewhere that PC value is not incremented when HALT instruction is executed so I guessed the answer to be 1024. Please check whether my understa...
2 votes
2 votes
3 answers
3
Laahithyaa VS asked Sep 9, 2023
892 views
. What will be the value returned by the following function, when it is called with 11?recur (int num){if ((num / 2)! = 0 ) return (recur (num/2) *10+num%2);else return 1...
1 votes
1 votes
3 answers
4
jverma asked May 23, 2022
1,027 views
#include <stdio.h>int f(int n){ static int r = 0; if (n <= 0) return 1; r=n; return f(n-1) + r;}int main() { printf("output is %d", f(5)); return 0;}Ou...