What is the difference between C and C++ ?
Answers
Answered by
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
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.
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
Math,
8 months ago
Social Sciences,
8 months ago
English,
1 year ago
Environmental Sciences,
1 year ago
Math,
1 year ago
History,
1 year ago