Compare and contrast dynamic memory allocation and deallocation operators new, new [], delete and delete[].
What will be an ideal response?
Operator new creates an object and dynamically allocates space in memory for that object. Operator delete destroys a dynamically allocated object and frees the space that was occupied by the object. Operators new [] and delete [] are used to allocate and deallocate arrays dynamically. Operator delete [] ensures that the destrctor is called for each element in the array before the array is reclaimed.
You might also like to view...
A good ____ can be used to scan the Web to assemble data for search engines.
A. zombie B. spyware program C. bot D. RAT
All fields in Word are listed under Document Property on the Quick Parts button
Indicate whether the statement is true or false
Consortium-operated exchanges are open to any set of buyers and sellers within a given market.
Answer the following statement true (T) or false (F)
Which task is not essential during a data conversion procedure?
A. decomposing the system B. validating the database C. reconciliation of new and old databases D. backing up the original files