The obvious advantages are those given by Object Oriented Programming over procedural programming. Besides, C++ is a bit more friendly and exists with a higher level interface for the user.
What are the advantanges of C language over C++ language?
Well, C is in some sense simpler. C++ is a superset of C, meaning that it contains everything in C and then some. You should (but this doesn't always work) be able to compile a program written in C with a C++ compiler. So, to learn C, there is less you need to learn.
On the other hand, C++ does have more meat to it. It's what's called an object oriented language, which allows you to (at least more easily) write programs in different ways than you would in C. It also has some more advanced memory handling syntax, and other features that many programmers find useful.
As a final verdict, if you have a choice (which is not always the case), it's a matter of personal preference. There's nothing that can't be accomplished in C that you can accomplish in C++ and vice versa (though C++ might make some things easier). If you're learning a first language, you might as well at least start with C, and perhaps follow it up with C++.
My own preference is for C, as I never quite liked C++'s implementation of object oriented programming.
Reply:Well, they're both different computer languages, except that C is more of a beginner's language than C++.
Reply:Well, in my (highly opinionated) opinion, C was created by a working computer scientist to be used to write the UNIX operating system, C++ was made popular by academic computer scientists looking for ways to justify their existence, and compiler vendors looking for ways to get more of your money.
C is an efficient if terse language that allows to programmer to do almost anything they want to (including making huge errors)
C++ on the other hand has multiple layers of obscuration, bizarre jargon, and "powerful features" with very high abuse potential.
Note: the opinions expressed here are not necessarily those of anyone who knows anything about anything.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment