Declarations Indentation Statements Comments White Spaces Naming Conventions Bug Reporting About Us Declarations Number of declarations per line One declaration per line is recommended since it encourages commenting. It is hard to read.
Initialization Try to initialize local variables where they're declared.
The only reason not to initialize a variable where it's declared is if the initial value depends on some computation occurring first. Placement Put declarations only at the beginning of blocks. Avoid local declarations that hide declarations at higher levels.