in C Plus Plus by
Select the best from following statement is true about the new and malloc?

I. The "new" is a type of operator while "malloc" is a kind of function

II. "new" invokes a constructor, whereas "malloc" does not invoke the constructor

III. "malloc" returns void pointer and also needed to typecast whereas "new" returns required the pointer

a) Only I

b) Both I and II

c) I, II, III

d) None of the above

▼ Show 1 Answer

0 votes

c) I, II, III

Learn More with Madanswer