Please explain me the basic difference between C and C++. Is C++ really a better language than C. As far as i know there is only difference in the syntax that is used. Please clear my doubts. Thank you in advance to everyone
Please differentiate C and C++
Started by Patrick, Oct 06 2007 11:44 PM
3 replies to this topic
#1
Posted 06 October 2007 - 11:44 PM
|
|
|
#2
Posted 07 October 2007 - 06:05 AM
C has been around since the early 70's. It was designed to run the Unix operating system. It is about as close to assembly language as you can get without using assembly.
C++ was designed to fill the need for code-reusability, necessary for large scale software development. It introduced Classes and Object Oriented Programming. It can do anything C can do.
So essentially, C is small and fast, and C++ is modular and scalable. Also, it is worth mentioning that C++ is still evolving.
C++ was designed to fill the need for code-reusability, necessary for large scale software development. It introduced Classes and Object Oriented Programming. It can do anything C can do.
So essentially, C is small and fast, and C++ is modular and scalable. Also, it is worth mentioning that C++ is still evolving.
#3
Posted 08 October 2007 - 08:24 AM
When comparing languages, "better" is a meaningless comparison. The question is "better for what?" C++ supports programming paradigms that C does not. In that sense, C++ is better. C++ is a more complicated language than C. In that sense, C is better.
#4
Posted 08 October 2007 - 03:27 PM
Also, not mentioned before (possibly implied) but worth noting, C++ was made as an enhancement to C "C with classes".


Sign In
Create Account


Back to top









