answersLogoWhite

0


Best Answer

C is an imperative (procedural), structured paradigm language whereas C++ is multi-paradigm: procedural, functional, object-oriented and generic. Both are high-level, abstract languages. While C's design provides constructs that map efficiently to machine code instructions, C++ is more abstract, relying heavily upon object-oriented principals. However, both are equally capable of producing highly-efficient machine code programs. C++ derives almost directly from C thus everything you can do in C you can do in C++ with relatively minor alterations to the source. C++ was originally called C with Classes and that pretty much sums up the main difference between the two languages. However, there are many subtle differences.

One key difference between C and C++ is in the struct data type. In C, a struct can only contain public data members (with no methods). In C++, a struct is similar to a class, combining data and the methods that operate upon that data into a single entity (an object). The only difference between a C++ struct and a C++ class is that class members are private by default whereas struct members are public by default.

Another key difference is that because C++ is object oriented, there is much less reliance upon the programmer to manage memory. Each object takes care of its own memory allocations (including embedded objects), thus the programmer simply creates and destroys objects as needed. Thus C++ is much easier to work with, especially with regards to highly-complex hierarchical structures, but is every bit as efficient as C.

Both languages are highly popular and there are few architectures that do not implement suitable compilers for both. Thus they are both highly portable. However, the object oriented approach to programming gives C++ a major advantage over C in terms of code re-usability, scalability and robustness.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

In case of C, importance is given to the steps or procedure of the program while C++ focuses on the data rather than the process.

Also, it is easier to implement/edit the code in case of C++ for the same reason

Functions are the building blocks of a C program while objects are building blocks of a C++ program.

C uses scanf & printf while C++ uses cin>> & cout<< as their respective input & output functions

C++ supports Exception Handling while C does not. C does not support it "formally" but it can always be implemented by other methods. Though you don't have the framework to throw & catch exceptions as in C++.

more difference here>>Difference_between_C_and_C_plus_plus_languages

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

C++ is an object oriented, what is Object oriented is : Object-oriented languages provide abstraction via classes. Classes define the properties and methods of an object type. C is not an object oriented

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

The biggest difference is in the approach with which programming is done. In c u do top-down programming whereas in c++ u do bottom-up. In c++ the basic thing with which we work is object whereas in c++ we work around functions only.

That is c++ follows OOP while c doesnt.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

C++ is C language with added extensions to support object-oriented programming. In general, C++is a superset of C, so that C programs will compile with a C or a C++ compiler. Originally C++ was a pre-processor run before a C compiler.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

C++ is object oriented while C is structured. Everything you can do in C you can also do in C++ with little variation. However, you can also mix object-oriented programming concepts with structured and procedural programming in C++.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

C++ is an advanced version of C that adds object oriented programing functions.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

C++ is an extension of C. Everything you can do in C you can do in C++. But besides some minor syntax differences, the major difference is the inclusion of object-orientated programming.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the major difference between c and c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between pointers in c and c plus plus?

Nothing.


Difference between void and devoid in c plus plus?

There is no such thing as devoid in C++.


What is the difference between be plus ing and get plus ing?

There are no such terms in C++.


What is the Difference between arrays in c and c plus plus?

Nothing whatsoever. They are exactly the same.


Is there any difference between turbo c and c plus plus?

turbo c is a compiler and c++ is a programming language.


What is the difference between cc plus plus and c sharp?

C# is inherited from c++ with some additional features


What is the difference between c plus plus and java programming?

Java doesn't have pointers. C++ has pointers.


What are the main differences between Java and C plus plus?

the difference is that c plus is better because you get big grades


Major difference between c and java?

Java is object oriented, C is not...


What is the difference between statements in c plus plus charconstp and char constp?

There is no difference. Both statements are invalid.


Difference between java and C plus plus?

java is an advanced object oriented programming language than c++


Defference between c plus plus and c?

these are difference in between c and c++: a) C is a SPL and C++ is a OOP. b) C has not concept of object but C++ has this feature. c) C has not 'class' name data type but C++ has.