Answer Posted / harsh
the difference between malloc and new is just that when a
variable is declared using malloc, it requires type casting
while new operator whenever used does not type cast by
itself as there is no need for the variable to be typecasted
when used with new operator
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
#include
What is the types of inheritance?
What is oops in simple words?
Which language is pure oop?
Which type does string inherit from?
What is class and object with example?
Get me a number puzzle game-program
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is abstraction in oops?
What is overloading and its types?
Why do we need oop?
What is object in oops?
What are the benefits of interface?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is the diamond problem in inheritance?