1.

In an application that uses stack, the memory for data is allocated ____________(a) logical(b) dynamically(c) statically(d) at the end of the programThis question was posed to me in my homework.Question is taken from Buffer Overflow topic in portion Cyber Security of Cyber Security

Answer»

Right option is (c) statically

The best I can EXPLAIN: In APPLICATION that USES heap, memory utilized by the application is allocated at the BEGINNING of the function CALL and the memory get released at the end of a program. Accessing of values in the stack is very fast.



Discussion

No Comment Found

Related InterviewSolutions