The single biggest difference I think is that this is a valid C source file:
int main()
{
foo();
}
Note that I haven't declared foo
anywhere.
Aside from language differences, C++ also makes some changes to the library that it inherited from C, e.g. some functions return const char *
instead of char *
.