4 ms·
There are structs in C, as well as unions, but they are data only - no methods.
by cicero 16y ago
There are structs in C, as well as unions, but they are data only - no methods.
- swift 16y agoWell, function pointers exist in C, though they are certainly a clumsy replacement for having methods (or first-class functions / closures / currying) built into the language.