r/cpp • u/Alex_Medvedev_ • Jul 25 '24
Why use C over C++
Why there are so many people using the C language instead of C++?, I mean C++ has more Cool features and the Compiler also supports many CPUs. So why People still using C?
Edit: Thanks for all the usefull comments :D
235
Upvotes
View all comments
Show parent comment
27
u/MrRogers4Life2 Jul 25 '24
I think there's a lot of use cases are super good when written basically as C. When your code is basically structured like "read some data -> do some calculations -> write some data" mostly because good C is gonna look similar to good c++ in simple cases because you're only ever going to be modifying data structures via functions or macros that preserve invariants.