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
Just define your variables at the beginning of the block or use another function. Adding an artificial scope with empty {}s or any of the alternatives is not good practice.