I am a python user so I may not have all the information but why do people and especially big companies still use C instead of C++? Isn't C++ the superset of C so it is supposed to be better? Also OOP is literally booming everywhere while C is still procedural. I don't suppose that there is much speed comprise between the two, so is there a specific reason?
Why would someone use C instead of C++? - Stack Overflow
Why use C instead of C++
c++ - Why is C language still used? - Stack Overflow
Is the C programming language still used? - Software Engineering Stack Exchange
Videos
C string handling is very different than C++ typical string code. Certainly I wouldn't want any C++ string near my drivers!
More specifically, in good, modern C++ you don't really have to understand pointers and handle buffers at low level; but these are basic and crucial skills in device driver code.
Yes, it's possible to write good drivers in C++; but that C++ would really look like C with a few extra features. Most of the C++ library has no place in deviceland.
It could simply be that they do not have a C++ compiler for the platform they are working with... Personally I would always use C++ in preference to C.
I would call my self intermediate in C++ and basic in C. I seriously don’t understand why you would C instead of C++ except if you don’t have access to libraries.
C has the advantage that it is a relatively small language, which makes it easy to implement a C compiler (whereas a C++ compiler is a monster to write), and makes it easier to learn the language. Also see the TIOBE index, according to which C slightly ahead of C++.
In (IMO) decreasing order of justification, C is still used a lot for
Embedded stuff
It's way easier to port a C compiler to a small platform than it is to port a C++ compiler. Also, C advocates claim that C++ "does too much behind their backs". However, IMO that's FUD.Systems programming
Again, that's usually due to claims that it is easier to "know what the compiler is doing". However, many embedded programs would benefit from, e.g., templates and other C++ key features.Open source software
That's mostly an attitude problem, though: OSS has always preferred C over C++ (whereas it's the opposite in large parts of the industry). Torvalds' irrational hatred might actually be the most important reason for this on Linux.
C is used a lot in embedded hardware programming where resources are scarce.
Linux kernel is written in C because, according to Linus Torvalds, C++ is a horrible language.
I've studied C programming basics in school and college, then there are many languages java python etc etc...
Though I'm not working in coding field... out of curiosity, i want to know IS C STILL ALIVE?... if yes can I fresh start a career with it
C is a popular language but i wanna know why use C now and for what purpose.
Thank you.
I am a python user so I may not have all the information but why do people and especially big companies still use C instead of C++? Isn't C++ the superset of C so it is supposed to be better? Also OOP is literally booming everywhere while C is still procedural. I don't suppose that there is much speed comprise between the two, so is there a specific reason?
Since I’ve started exploring C, I’ve realized that many programming languages rely on libraries built using C “bindings.” I know C is fast and simple, so why don’t people just stick to using and improving C instead of creating new languages every couple of years?