Why would attempting the assignment AFTER the value has been printed have any effect whatsoever?

Does exit(); really compile for you?