Which of the following is correct about new and malloc?

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

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

1.Both are available in C

2.Pointer object initialization of a class with both new and malloc calls the constructor of that class

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

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

Posted Date:-2021-01-31 14:08:04


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!