What will happen if we use the operator “new” and the memory cannot be allocated?
A. It prints: Error allocating memory
B. It prints: Standard exception
C. It prints: Unknown exception
D. Compilation error
Answer:A
What will happen if we use the operator “new” and the memory cannot be allocated?
A. It prints: Error allocating memory B. It prints: Standard exception C. It prints: Unknown exception D. Compilation error