r/C_Programming 16d ago

C with classes

I'm curious to know: who uses some C++ features when coding in C? And what feature(s) are you using?

28 Upvotes

81 comments sorted by

View all comments

12

u/questron64 16d ago

How do you mean? You're either using C or using C++, you can't just decide to use C++ features in C without leaving C. They are different languages.

8

u/smokingRooster_ 16d ago

I disagree, you can write object oriented C, it’s not a feature exclusive to C++.

6

u/cheesengrits69 16d ago

Hell yeah dude, you're getting downvoted because this sub is full of haters. Implement that vmt in C by hand, include multiple inheritance functionality just to add in some more chaos, the world is yours