开发者

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

开发者 https://www.devze.com 2023-02-04 19:48 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, ov开发者_如何学Goerly broad, or rhetorical andcannot be reasonably answered in its current form.
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

精彩评论

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