adplus-dvertising
frame-decoration

Question

What is the purpose of ldloc and stloc instructions?

a.

To load and store local variables to and from the evaluation stack

b.

To load and store global variables to and from the evaluation stack

c.

To load and store arguments to and from the evaluation stack

d.

None of the above

Posted under Reverse Engineering

Answer: (a).To load and store local variables to and from the evaluation stack Explanation:ldloc loads a local variable onto the stack, while stloc pops the value currently at the top of the stack and loads it into the specified variable.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the purpose of ldloc and stloc instructions?