Can you please help me why int i becomes -4912 (see the picture) when it should start from 1? Thank you very much.
int main(void)
{
long long n = 4003600000000014;
int i;
int num;
for (i = 1; i < 15; i += 2)
{
int digit = (n / pow(10, i));
printf("%i\n", digit);
}
}

i? Before it's assigned to by theforloop? What happens if you step once in the debugger?inton your system large enough to hold the values returned by that equation?iisn't initialized yet. Make sure the break point is at line 19iso it gets a random stack value until it is set to 1 in the for-loop.