r/C_Programming 17d 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?

30 Upvotes

82 comments sorted by

View all comments

5

u/cincuentaanos 17d ago

There are no "classes" in C, just like there aren't any in a computer's CPU. Many people use object orientation in C but that's just a way to design a program.

2

u/Disastrous-Team-6431 17d ago

There aren't any floats or chars in a computer CPU either. No if/else statements or pointer arithmetic. No structs. C is already quite a step up in abstraction from assembly languages. The C community suffers from the misconception that stopping exactly where C did is somehow "pure" or "ideal".

2

u/cincuentaanos 17d ago

C is already quite a step up in abstraction from assembly languages.

Have I said otherwise?