And this line of code increments 'b' to 1
nt b = 0;
So these lines of code are dividing by 1
Dividing by 1 does not cause a 'divide by zero' exception.
int c = a / b; int d = a/b; int e=(a/b);
Anid this line of code tries to divide by 0
int b = 0;
Because a 'divide by zero' exception occurs when you attempt to 'divide by zero'.
int c = a / b;