3 ms·
C++ is not a strict superset of C anymore. You can't compile all C in a C++ compiler.
by jki275 7y ago
C++ is not a strict superset of C anymore. You can't compile all C in a C++ compiler.
- mrr54 7y agoTo use a trivial example: int free;
- leetcrew 7y agocare to explain which language this doesn't work in (and why)? I'm curious. AFAIK, `free` isn't a keyword in either language and this is just declaring an int variable with a legal identifier (but not initializing it).
- leetcrew 7y agohas c++ ever been a strict superset of c? afaik, int* arr = malloc(sizeof(int)); has never worked in c++.
- jki275 7y agoIt's probably never been a strict superset really.