Initialize Variables Before Using Them
摘要
When we declare local variables, they are not initialized. Their values are undetermined. Trying to access uninitialized variables causes undefined behavior. One use case would be trying to print local, uninitialized variables. The following example demonstrates what should be avoided: