How many variables should you declare on a line?
Show answer and explanation
Declare one variable per statement. It makes each type, pointer declarator, initializer, lifetime, and comment unambiguous and avoids the false impression that one initializer applies to every name.
Declare one variable per statement. It makes each type, pointer declarator, initializer, lifetime, and comment unambiguous and avoids the false impression that one initializer applies to every name.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.