Hi

I have seen several programs that define variables inside a block, like:

Code:
int main (void)
{
   ...
   ...
   ...
   while (...)
   {
       int variable;
       ...
       ...
   }
   ...
   ...
}
Are there any advantages in using such code?

Thx !