In C, you can define a variable at the beginning of any block.
For example, the following is correct (although setting i to 5 is weird):
i