Quote Originally Posted by Elysia View Post
That is not correct.
C and C++ are tied for speed. C is better in some areas, C++ in others.
I don't really think you can say that one is faster than the other when the speed of the code depends on how well the compiler optimizes your code. It's really compiler vs. compiler.

Computer Language Benchmarks Game reflects what you say, i.e. C is faster in only some areas, but take a look at the distributions...somehow C++ has a much, much smaller standard deviation. Since both languages end up as machine code in the end, it's apparent that g++ does a better job of optimizing than gcc.