What is the difference between C and C++?
Answers
Answered by
2
C language is a procedural language. High level language.
C++ is also a high level programming language.
C++ has procedural language features like in C and Object oriented programming features. OOPS concepts are available in c++.
so classes, inheritance, polymorphism, overloading of functions and operators, friend functions, abstract classes etc. are available here..
C++ is also a high level programming language.
C++ has procedural language features like in C and Object oriented programming features. OOPS concepts are available in c++.
so classes, inheritance, polymorphism, overloading of functions and operators, friend functions, abstract classes etc. are available here..
Answered by
2
Answer:
C is a procedural language and C++ is a mix of procedural programming and object oriented programming language.
In c++, one defines classes, creates objects, uses the methods (functions) defined within a class. It is safer programming language than C language. Debugging programming could be simpler in C++. Since the language is object oriented, it is easier to add or enhance features by including more objects/classes in an existing program. The code size could be very high in C++.
C++ contains every thing that C program can do.
Similar questions