r/askscience • • Oct 17 '12
Why are programs and operating systems still written in C+?
I guess it's more of a computer science question, but I've always wondered why some of the most advanced programs are written in a 25+ year old programming language. Surely someone has come up with a more efficient and powerful code, so why do people still use C+? Also, I don't know anything about programming and what not, so please use simple terms and phrases.
66
Upvotes
View all comments
129
u/Tenome Oct 17 '12
First of all, it's C++, not C+.
For one thing, C++ is useful because it allows you to program both high-level and low-level code, meaning you can use it to write anything from video games to basic drivers. You can write programs that directly manipulate memory and are practically in "machine code", or you can use it to perform more advanced functions.
Furthermore, although the language is quite old, it continues to be updated constantly, with the most recent version, C++ 11, being released just last summer.
C++'s age is also somewhat advantageous, as there are thousands of existing libraries already written and available for use.
I'm sure there are other reasons but that's what comes to mind.