the Primitive Built-in Types bool

来源:互联网 发布:奇爱博士讲电影知乎 编辑:程序博客网 时间:2024/04/30 02:04

The type bool represents the truth value,true and false.We can assign any of the arithmetic types to a bool.An arithmetic type with 0 yields a bool that holds false,Any nozero value is treated as true.

 

versus as the main return value ,we return 0 to indicate success,but other nonzero value indicate different error.

 

 

原创粉丝点击