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.
β
Correct Answer: (C)
1 and 2
You must be Logged in to update hint/solution
Discussion
Question Analytics
465
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
85%
Success Rate