InterviewSolution
Saved Bookmarks
| 1. |
Which of these operators is used to allocate memory for an object?(a) malloc(b) alloc(c) new(d) give |
|
Answer» The correct choice is (c) new The explanation is: Operator new dynamically allocates memory for an object and returns a reference to it. This reference is address in memory of the object allocated by new. |
|