adplus-dvertising
frame-decoration

Question

Which IL instruction is used to load a local variable onto the stack?

a.

ldloc

b.

stloc

c.

ldarg

d.

starg

Posted under Reverse Engineering

Answer: (a).ldloc Explanation:ldloc is used to load a local variable onto the stack, while stloc is used to pop the value currently at the top of the stack and load 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. Which IL instruction is used to load a local variable onto the stack?