Question: Which of the following is correct about new and malloc?

Options

A : Both are available in C

B : Pointer object initialization of a class with both new and malloc calls the constructor of that class

C : Pointer object initialization of a class using new involves constructor call whereas using malloc does not involve constructor call

D : Pointer object initialization of a class using malloc involves constructor call whereas using new does not involve constructor call

Click to view Correct Answer

Next

Cplusplus Programming Oops Concept 4 more questions

Which of the following transport protocol combined with XMPP can....

By which of the following technique the gametes of threatened....

Which of the following is an odd one?

Which is the India’s oldest conservation research based NGO?

Predict the chirality of the shown compounds.

What is the difference between vanishing cream and cold cream?

A tachometer is used as an inner loop in a....

What is the difference between begin() and cbegin() in vectors?

The difference between a flip-flop & latch is ____________

Which of the following is untrue regarding Chou–Fasman and GOR....

Chemical Engineering Basics - Part 1 more Online Exam Quiz

Cplusplus Programming More Containers

Cplusplus Programming Namespaces 2

Cplusplus Programming Objective

Cplusplus Programming Oops Concept 1

Cplusplus Programming Oops Concept 2

Cplusplus Programming Operator Overloading 1

Cplusplus Programming Operator Overloading 2

C Plus Plus Programming Pointer To Void

Cplusplus Programming Question Papers

Cplusplus Programming Questions And Answers Associative Containers