4 ms·
> if a feature exists in C, it probably exists in every language most programmers are familiar with. I don't think that's true. Off the top of my head, C has:
by munificent 9y ago
> if a feature exists in C, it probably exists in every language most programmers are familiar with.
I don't think that's true.
Off the top of my head, C has: array point decay, padding, bit fields, static types, stack allocated arrays, integers of various sizes, untagged enums, goto, labels, pointer arithmetic, setjmp/longjmp, static variables, void pointers, the C preprocessor.
Those features are all absent in many other languages and are totally foreign to users that only know those languages. A large part of C is exposing a model that memory is a freely-interpretable giant array of bytes. Most other languages today are memory safe and go out of their way to not expose that model.