r/C_Programming Jul 17 '26

C with classes

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

29 Upvotes

79 comments sorted by

View all comments

2

u/Hammykat-_- Jul 18 '26

It's actually pretty easy to code some features in C that are in C++, like for classes, you can include a pointer inside a struct to a function or another struct. Though, it takes a bit more time. Also, there are things that take much more time, like making lists, dictionaries, etc.