The following code prints AA:
#include <stdio.h>
int main()
{
    for(int i;i;i--)
        printf("A");
    return 0;
}
Why the initial value of variable i is 2, and not some garbage value?
Is the lifetime of variable i static or automatic?
 
     
     
    