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. (Solved)

1. 1 and 3

2. 2 and 3

3. 1 and 2

4. all 1,2,3

  • c. 1 and 2
Subscribe Now

Get All Updates & News