1.

Variables that gets created dynamically when a function (such as malloc()) is called is created in the form of _______ data-structure.(a) array(b) queue(c) stack(d) heapThis question was posed to me during an internship interview.My enquiry is from Buffer Overflow in section Cyber Security of Cyber Security

Answer»

Correct choice is (d) heap

To EXPLAIN I would say: Variables that gets created dynamically when a function (such as malloc()) is called is created in the form of heap data-structure. In heap-based OVERFLOW, the buffer is PLACED on the lower PART of the heap, overwriting all dynamically generated variables.



Discussion

No Comment Found

Related InterviewSolutions