September 9, 2014

Difference between C and C++

1. C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented)

2. C is a low-level language while C++ is a middle-level language (Relatively, Please see the discussion at the end of the post)

3. In case of C, the data is not secured while the data is secured(hidden) in C++

4. C++ allows the use of reference variables while C does not

5. The standard input & output functions differ in the two languages

6. We can use functions inside structures in C++ but not in C.

7. The NAMESPACE feature in C++ is absent in case of C

8. C++ supports function overloading while C does not

9. C is function-driven while C++ is object-driven

10. C uses the top-down approach while C++ uses the bottom-up approach

2 comments: