what is the main difference between c and c++?
Answer Posted / jhumu
DIFFERENCE BETWEEN C AND C++:
* C IS STRUCTURED PROGRAMMING LANGUUAG WHEREAS C++ IS
OBJECT ORIENTED PROGRAMMING LANGUAGE.
* C IS TOP-DOWN PROCESS BUT C++ IS BOTTOM-UP PROCESS.
* C++ IS PREDECCESSOR OF C.
* C++ SUPPORTS 5 MAIN CHARACTERISTICS CLASSES, OBJCECTS,
INHERITENCE, ENCAPSULATION AND POLIMORPHISM WHEREAS C
DOES'T SUPPORT THESE FEATURES.
* C++ USES CLASSES WHICH IS AS SIMILLAR AS STRUCTURE USED
IN C BUT THERE IS MINOR DIFFERENCE BETWEEN THEM IS
STURCTURE SUPPORTS ONLY DIFFERENT DATA TYPES WHEREAS CLASS
IS A COLLECTION OF DIFFERENT DATA MEMBERS AND MEMBER
FUNCTIONS ALSO.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is abstract class in oop?
What is polymorphism and example?
#include
What is class and object with example?
What is protected in oop?
What are functions in oop?
Why is abstraction needed?
What is polymorphism programming?
How many human genes are polymorphic?
What is purpose of inheritance?
What is encapsulation with example?
Why is there no multiple inheritance?
What are the two different types of polymorphism?
What do you mean by abstraction?
What language is oop?