Multiple Choice
Which of the following is true about new when compared with malloc.
1) new is an operator, malloc is a function
2) new calls constructor, malloc doesn't
3) new returns appropriate pointer, malloc returns void * and pointer needs to typecast to appropriate type.
A) 1 and 3
B) 2 and 3
C) 1 and 2
D) all 1,2,3
Correct Answer:

Verified
Correct Answer:
Verified
Q1: #include<iostream> using namespace std;class X{public:int x;};int main(){X
Q2: Which of the following is true?<br>A)all objects
Q3: Which of the following approach is adopted
Q4: How many objects can be created from
Q5: C++ was originally developed by ….......<br>A)donald knuth<br>B)bjarne
Q7: Is it fine to call delete twice
Q8: If particular software can be used in
Q9: The main intention of using inheritance is
Q10: Which of the followings is/are automatically added
Q11: Which of the following data type does