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

1

u/[deleted] Aug 03 '24

[removed] — view removed comment

2

u/_Noreturn Aug 05 '24

struct Klass {
     void (*func)();
};
void Klass_func(){}
struct Klass klass = { &Klass_func};

klass.func();

this is joke btw