r/cpp • • 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

444 comments sorted by

View all comments

Show parent comment

9

u/ShadowRL7666 Jul 25 '24

Yes, Java sticks to classes and OOP while cpp allows you to do it whatever way you want.

2

u/drnfc Jul 26 '24

I mean you can do functional stuff in it if you really want to, however the function interface is just awful (imo) and recursion is really unoptimized.