3 ms·
C and C++ are not separate languages, one is a subset of the other. I just mentioned C explicitly because some hardware devices don't have a C++ compiler.
by jondubois 8y ago
C and C++ are not separate languages, one is a subset of the other.
I just mentioned C explicitly because some hardware devices don't have a C++ compiler.
- pjmlp 8y agoNo they are not, this is a compiler error in C++. char *ptr = malloc(1024); And this uses a different evaluation order int i = a ? b > b ? 1 : 3 : 5; There are other subtle differences when talking about C89 and C++98, let alone when talking about C11 and C++20.