2 ms·
I write both C and C++ on a regular basis. The set of idioms used in C is radically different from what you'd find in C++ (even though a lot of C code is valid
by Figs 13y ago
I write both C and C++ on a regular basis. The set of idioms used in C is radically different from what you'd find in C++ (even though a lot of C code is valid C++). When I first started working on C projects written professionally (after quite a bit of experience with C++), I was seriously thrown off by things like reinterpreting structs to treat the first element as a parent structure (essentially emulating inheritance in pure C code).