Computer Science, asked by prakasha2, 1 year ago

What is the difference between C and C++ ?

Answers

Answered by AliaS
1
C is a procedural language where in all steps and procedures need to be typed in and are executed in order. Whereas, in c++, only the main commands are typed in, creating classes and objects which make it easier to execute and debug or modify the program without changing the whole program. C++ is a non procedural Lang like java
Answered by kvnmurty
1
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