... no error (never generated code) 没有错误返回 wrong function pointer 函数指针错误 array index is out of range 数组越界 ...
基于2个网页-相关网页
返回码为0就说明没有错误。
而另一种实现只是无声地返回,没有错误消息,也没有不寻常的退出代码。
The other just returns silently; no error message, no unusual exit code.
既然所有错误都会导致退出,那么如果我们从process_input函数返回,则意味着没有错误,因此我们从main返回0。
Since all errors cause an exit, if we return from the process_input function, it means there was no error, so we return 0 from main .
应用推荐