I have the following code:
int main()
{
int i = 0;
cout << i; //why is i not printed even though it is before the exception?
int j = 1 / i; //divide by 0
j++;
cout << i << j;
return 0;
}
Why is i
not printed? It should be printed, because it is before the exception occurs.
But nothing is getting printed, I just get the exception.
Any ideas?