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.