Note: My question is based after checking this and the answers to it.
In some bigger methods, there are pieces of code that you only want to be alive f
It's just plain C syntax. You use it to open a new scope as others mentioned. What this means (this is C feature) that you can use same names for stack variables again, as they are in different scope. Also, variables you declare inside that scope will not be accessible by outside scope.
There is no relation to memory footprint, only about code organization.