in C Plus Plus by
Q:
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

▼ Show 1 Answer

0 votes
by

a) Only II

Learn More with Madanswer
...