+2 votes
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

1 Answer

0 votes
by

c) I, II, III

Related questions

0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
+1 vote
asked Jan 21, 2021 in C Plus Plus by SakshiSharma
...