开发者

Why is C faster than C++ in code execution? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, ov开发者_如何学Goerly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

Before I knew that C was faster than C++ I was able to write some simple code where C executed faster than C++'s speed.

So my question is: please explain then reason behind this.

If this has already been explained elsewhere on this site or the internet, please share a link.


The reason behind this is your poor test.


C is not faster than C++ because C++ is a superset of C.

Here it is!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜