what is the differences between c and c++
The biggest difference comes from the Object Oriented approach of C++. C doesn't explicitly provide for class development whereas C++ provides the ability to create robust, dynamic class structures. Also, C++ has a lot more general functionality - C is a very basic, yet powerful language.
C++ has a great STL library with kind of useful templates, and of course you can't use classes and any other object oriented features in C++.
Another thing to note is that while most C code is valid C++ code (C++ is in some sense a superset of C), they each deal with low level memory operations differently. C uses malloc() and free() while C++ makes use of the new operator and delete operator.
The c++ programing language is the Objec oriented side of the c language.
C++ is a superset of C. C++ added support for object oriented programming. Both languages can execute extremely fast. The name C++ is actually a play on words: ++ is the increment operator in C (equivalent to c = c + 1). For the extra features and versatility of C++, the language is correspondingly more complex.
As others have said, C++ is Object Oriented, while C is not. However C++ is not a complete super-set of C. For example old style K&R function declarations are not supported in C++ (not that you want to use them anyways). Also, on C you can use functions before declaring them (most compiler will not cringe).
Join our real-time social learning platform and learn together with your friends!