Suppose I declare a loop like this
So is the variable 'i local to the loop, that is each time the control enters the loop a new space is allocated for the variable and the space is deallocated after the completion of loop? Is it true for C99 also?Code:for(int k = 0;k < 5;k++) { // some work }