Possible duplicate:
"C is a subset of C ++" → Where not? examples?
I know that C is a subset of C ++ (i.e. there is no valid C code that is not a valid C ++ code). My question is: is it compatible g++with all C code. For instance,
g++ -o testing test.c
create identical binary code for
gcc -o testing test.c
in all circumstances?
More specifically, if they do not always create identical binaries, is there any reason that might be the problem? Is it always safe to use g++if I'm not sure about the code?
source
share