Lecture 2 - Slide 8 : 29
Declarations as statements - declarations in conditions

Introduce and initialize a variable at the place where it is first used

It is possible to delare variables in a condition of an if statement

less-localized.cc
Declarations before statements - C89 Style.
localized.cc
A declaration is a statement in C++.
decl-in-if.cc
A declaration in the condition of an if.