what is difference between 'C' and 'C++'
kshytizNES:
thank you venky
Answers
Answered by
1
Following are the differences between c and c++.
1. C doesn't support Object-oriented programming, whereas C++ support OOP.
2. C follows the top-down approach, whereas c++ follows the bottom-up approach.
3. C does not support function overloading. whereas, c++ does.
4. C doesn't provide support for error handling. whereas c++ does.
Note: C was developed by Dennis Ritchie and C++ by Bjarne Stroustrup.
Hope this helps!
1. C doesn't support Object-oriented programming, whereas C++ support OOP.
2. C follows the top-down approach, whereas c++ follows the bottom-up approach.
3. C does not support function overloading. whereas, c++ does.
4. C doesn't provide support for error handling. whereas c++ does.
Note: C was developed by Dennis Ritchie and C++ by Bjarne Stroustrup.
Hope this helps!
Answered by
0
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