Professional Documents
Culture Documents
com/latestmemory-allocation-interview-questionsanswers-freshers-experienced-pdf-freedownload/
Latest Memory Allocation Interview Questions and
Answers for freshers and experienced pdf free download
Top Memory Allocation most frequently asked C++ Questions and Answers
2.
3.
4.
5.
6.
In the expression, char *c = (char *)malloc(20); followed by free(r); explain the role of
mallocQ operator in allocating the number of bytes?
7.
Is it possible to use the free operator with the new allocated pointers and the delete
operatorQ with the
malloc allocated pointers?
8.
9.
10.
Is there any need for checking of NULL after executing p = new Animal ()?
11.
Can a NULL be checked before deleting the p variable froi the expression, Delete p; and
not if (p != NULL) ?
12.
13.
14.
15.
What would happen on forgetting [], while deallocating an array through new?
16.
Can [] be dropped on deletion of some built-in type array (char, int etc)?
17.
Write about the retrieval of n number of objects during the process of delete[]p?
18.
19.
Discuss the effects occur, after an exception thrown by a member function is unspecified
by an exception specification.
20.
21.
22.