Describe the action of the new operator. What does the new operator return? What are the indications of error?
What will be an ideal response?
The new operator takes a type name for its argument, new allocates space on the freestore for a variable of the type of the argument. It returns a pointer to the allocated memory if there is enough memory space. If there is insufficient memory space the new operator may abort the program, or return a null pointer, depending on your particular compiler.
You might also like to view...
What access control system lets owners decide who has access to the objects they own?
A. Role-based access control B. Task-based access control C. Discretionary access control D. Rule-based access control
What must be known about the ADT Bag in order to use it in a program?
a. how entries in the bag are represented b. how bag operations are implemented c. how many entries can be stored in the bag d. the interface of the bag