Discussion in 'C Programming' started by pepitatomas000, Feb 5, 2014.
f = sqrt(16.0f);
Well played, sir. Well played.
Isn't that UB? (Or is it implementation-defined?)
"return x;" from main() results in x being passed to exit(). The
standard specifies, for exit(status), that "If the value of status is
zero or EXIT_SUCCESS, an implementation-defined form of the status
successful termination is returned. If the value of status is
EXIT_FAILURE, an implementation-defined form of the status unsuccessful
termination is returned. Otherwise the status returned is
Note, in particular, that on systems where there are multiple possible
"successful termination" statuses, 0 and EXIT_SUCCESS are neither
required to produce the same "successful termination" status, nor
prohibited from doing so.
It's the phone number from the song by Tommy Tutone, "8 6 7 5 3 0 9".
Rick C. Hodgin
Separate names with a comma.