4 ms·
Almost all C is valid C++, but the reverse isn't true.
by khedoros1 10y ago
Almost all C is valid C++, but the reverse isn't true.
- makapuf 10y agoAlmost but not all. Restrict keyword, by example.
- dangerbird2 10y agoAlso modern features like atomics and complex numbers are implemented as language features in C, but with template libraries in C++. Likewise type-generic math in C11 uses the C-specific _Generic keyword, but uses templates and function overloading in C++