In the C programming language, it is my understanding that variables can only be defined at the beginning of a code block, and the variable will have the scope of the block it w
I don't think you need the if(true) portion.
Just the { } are required to scope the variables.