adplus-dvertising
frame-decoration

Question

When are local variables stored in memory addresses instead of registers?

a.

When they are only used for a short period of time

b.

When their addresses are taken using the & operator

c.

When they are passed by reference

d.

When they are passed by value

Posted under Reverse Engineering

Answer: (b).When their addresses are taken using the & operator Explanation:Local variables are stored in memory addresses instead of registers when their addresses are taken using the & operator.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. When are local variables stored in memory addresses instead of registers?

Similar Questions

Discover Related MCQs

Q. What are imported variables and where are they stored?

Q. Why are imported variables usually named?

Q. How can identifying imported variables be helpful for reversers?

Q. What is the performance penalty of using imported variables?

Q. How is a low-level code sequence that accesses an imported variable different from a common code sequence?

Q. What are imported variables?

Q. Why are imported variables important for reversers?

Q. How can imported variables be identified?

Q. What is the primary method for using constants in C and C++?

Q. How are constants defined using the #define directive interpreted by the compiler?

Q. What is thread-local storage?

Q. Which of the following is not a function included in the TLS API in Windows?

Q. What is the declspec(thread) attribute used for in Windows programs?

Q. How can a thread-local variable be identified while reversing a Windows program?

Q. What is a data structure?

Q. What is a generic data structure?

Q. What is the important thing to remember about generic data structures?

Q. Can a data structure have a variable-sized array as its last member?

Q. Where do generic data structures usually reside?

Q. Why are data structures usually aligned to the processor's native word-size boundaries?