阅读背景:

在C/ c++中,返回0作为默认值的基本原理

来源:互联网 

Is there a reason why zero is used as a "default" function return value? I noticed that several functions from the stdlib and almost everywhere else, when not returning a proper number (e.g pow(), strcpy()) or an error (negative numbers), simply return zero.Is there a reason why zero is used as a "defaul




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: