Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
3 Answers
- satishLv 49 years agoFavorite Answer
c is procedural language.
c++ can be used as a procedural as well as object oriented language.
you can benefit from the features of object oriented language using c++, like inheritance, polymorphism ,data encapsulation, overloading etc.
- TuhinLv 69 years ago
1. C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented)
2. In case of C, the data is not secured while the data is secured(hidden) in C++
3. C is a low-level language while C++ is a middle-level language (Relatively, Please see the discussion at the end of the post)
4. C uses the top-down approach while C++ uses the bottom-up approach
5. C is function-driven while C++ is object-driven
6. C++ supports function overloading while C does not
7. We can use functions inside structures in C++ but not in C.
8. The NAMESPACE feature in C++ is absent in case of C
9. The standard input & output functions differ in the two languages
10. C++ allows the use of reference variables while C does not
11. C++ supports Exception Handling while C does not.
Hope these much is sufficient for you :)
- jplatt39Lv 79 years ago
Bjarne Stroustrup who created C++ defined it as "C++ is C with objects and namespaces". That is C is a procedural language where everything is done in functions. The problem Stroustrup had with it is that it was not secure. You could access most variables from anywhere in or even outside the program. Objects are essentially records which contain functions and procedures called methods which keep the variables isolated from calls outside where they are supposed to originate. Namespaces are another way to insure this. Of course this is something we can overcome if we want to.