Why do people use C over C++ and should I do too?

  softwareengineering

Why do people use C over C++?
Why do people use C over C++ if C code can run in C++? Does giving up C++ features for simplicity of the language really worth it? If you don’t want to use those features, you can still write code without them, and I don’t think that if someone on your team uses those featrues, it’s that big of a deal, yet I’ve seen a lot of developers that prefer C over C++. I wanna know why.
Should I use C over C++?
I’m a casual advanced beginer programer. I’m interested in low level stuff because I like to know what a machine does and how many resources it takes for different tasks. I’m also into optimized code, rather than just writing code fast. I usually use C++, but write the code in C-like style: no classes, templates, smart pointers. I feel, like it’d be better for me to switch to C because it is known to be easier to learn, but I’m afraid I’m gonna miss out on some features that C++ has, and I don’t really see a point to use C compiler instead of C++ one because as I said, you can write C in C++.

New contributor

Vitalii is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

LEAVE A COMMENT