Which of the following statements is true about the new and malloc? I. The…
Which of the following statements is true about the new and malloc? I. The ‘new’ is a type of operator while ‘malloc’ is a kind of function. II. The ‘new’ invokes a constructor, whereas ‘malloc’ does not invoke the constructor. III. The ‘malloc’ returns void pointer and also needed to typecast whereas ‘new’ returns required pointer.
- A.
Only I
- B.
Both I and II
- C.
Both II and III
- D.
More than one of the above
- E.
None of the above
Attempted by 291 students.
Sign up free to check your answer
Sign up freeLoading lesson…

