what is the main difference between c and c++?

Answer Posted / mayuri

C C++

DATA IS NOT SECURED SECURED

TOP DOWN BOTTOM-UP

FOCUS ON PROCEDURES FOCUS ON DATA

PROGRAMS ARE DECOMPOSED INTO OBJECTS
INTO FUNCTIONS

allocation is done NEW OPERATOR
with malloc statement

UNOINS AND ENUMS AVALIABLE
ARE NOT AVALIABLE

DOES NOT PROVIDE PROVIDES
DEFAULT ARGUMENTS

Is This Answer Correct ?    919 Yes 147 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pure oop?

807


What is byval and byref? What are differences between them?

1916


Is oop better than procedural?

745


Why do we use inheritance?

799


Which type does string inherit from?

805






What are the 4 main oop principles?

915


What is destructor give example?

788


What is encapsulation and abstraction? How are they implemented in C++?

822


Where You Can Use Interface in your Project

1587


What is the highest level of cohesion?

747


What is abstraction in oops?

762


What is the types of inheritance?

774


What is the oops and benefits of oops programming?

708


Why is polymorphism important in oop?

796


Why do we use polymorphism?

739