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
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is encapsulation oop?
What is difference between oop and pop?
What is inheritance in simple words?
What is inheritance write a program to show use of inheritance?
What is encapsulation with real life example?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is advantage of inheritance?
What are the types of abstraction?
What is an interface in oop?
What are the features of oop?
What is the purpose of polymorphism?
Why do we use encapsulation in oops?