最終更新:2018-01-16 (火) 14:54:34 (2253d)
return
Top / return
メモ
- return 0? - 正常終了
- if
0 false !0 true
メモ
関数 ゼロ 非ゼロ isalnum?()/isalpha?()/... などの文字判定関数 条件に合致しない 条件に合致 remove?()/rename?() 正常終了 エラー C90のmain EXIT_SUCCESS (0) EXIT_FAILURE (1)
C90のmain
- http://stackoverflow.com/questions/204476/what-should-main-return-in-c-and-c
- The standard defines 3 values for returning that are strictly conforming (that is, does not rely on implementation defined behaviour)
- 0 and EXIT_SUCCESS for a successful termination, and EXIT_FAILURE for an unsuccessful termination.
- Any other values are non-standard and implementation defined.