I was looking for an answer for my questions on many pages but I couldn't find it.
In this case we are defining variable and reinitialaze it in every loop:
while(1)
int k = 7;
In this case we are defining variable before the loop and reinitialaze it in every loop.
int k;
while(1)
k = 7;
There is any advantages or disadvantages of using both methods? Or maybe it don't make a difference?