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

I. The pointer object initialization of a specific class using "malloc" also needs to include constructor calls; on the other hand, doing so with the "new" keyword does not include any

constructor calls.

II. The pointer object initialization of a specific class using the "new" keyword also needs to include a constructor call. On the other hand, doing so with the "malloc" does not need to

include any constructor calls.

III. Pointer object initialization of a specific class using either "new" or "malloc" involves the constructor call.

a) Only II

b) Both II and III

c) Only I

d) None of the above

1 Answer

0 votes
by

a) Only II

Related questions

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