![Mcqmate logo](https://mcqmate.com/images/logos/logo-black.png)
![Mcqmate logo](https://mcqmate.com/images/logos/logo-white.png)
McqMate
Q. |
Which of the following is true about new when compared with malloc. 1) new is an operator, malloc is a function 2) new calls constructor, malloc doesn't 3) new returns appropriate pointer, malloc returns void * and pointer needs to typecast to appropriate type. |
A. | 1 and 3 |
B. | 2 and 3 |
C. | 1 and 2 |
D. | all 1,2,3 |
Answer» C. 1 and 2 |
View all MCQs in
Object Oriented Programming (OOP)No comments yet