I was justing wondering which language is better. I know C++ is an OOP language and C is procedural, but which is better in general. Or is it impossible to compare them? Thanks in advance. Also someone told me that C is rarely used anymore. Is that true?
Which programming language is better, C or C++?
Either one will work and is excellent. C++ offers something that C does not, and that is scalability. C++ also allows you to make objects 'on the fly' so to speak via inheritance. There is also better error handling with C++.
Addendum:
The company I work for still does a lot of C programming for our telecom apps/testing.
Reply:Better is truly relative. Better for doing what? As noted above, C is very fast in execution, so for real time applications it is great. If you are talking about web app programming, I don't know any that have C or C++ api's, everything in that relm is Java. If you are talking web presentation layer, PHP, ASP, JS, the list goes on and on.
From an academic perspective, I think C++ is easier to use to write course type programs and such.
my 2 cents...
Reply:Horses for courses. For real time embedded programming with really low system requirements C is excellent. For more complicated stuff C++ can tackle the biggest systems.
Reply:Another advantage of C++ is that bugs are a little easier to handle, and memory leaks and seg faults are a lot less common.
Reply:C++
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment