P
Q. 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.
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of the following is not a false statement about new operator?
Q. What is the default return type of a function?
Q. The binding of data and functions together into a single class‐type is referred to as ‐‐‐‐‐‐‐‐
Q. Logical expressions produce ____________ type results.
Q. Which of the following term is used for a function defined inside a class?
Q. What is the output of the following C++ program?
Q. Which exception is thrown when dynamic_cast fails?
Q. Which of the following is the correct way to define a function with a final specifier in C++?
Q. What is the built in library function to compare two strings?
Discusssion
Login to discuss.