C and C++ have different standards. From casting the return value of malloc (C++ needs that, in C it should be avoided) to nasty things like 'sizeof('a')' which gives different values in C and C++....
Type: Posts; User: pittbull
C and C++ have different standards. From casting the return value of malloc (C++ needs that, in C it should be avoided) to nasty things like 'sizeof('a')' which gives different values in C and C++....
Not at all. There are many well-working C codes that won't compile in C++.
--> http://david.tribble.com/text/cdiffs.htm