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

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