Which Numbers Would Crash this Function? Which values of x and y will cause a crash with some C compilers?

int f(int x, int y) {
    return (y==0) ? 0 : (x/y);
}
-2147483648 (INT_MIN) and -1

#include &lt;stdio.h&gt;
#include &lt;limits.h&gt;
int f(int x, int y) {
    return (y==0) ? 0 : (x/y);
}
int main() {
    int r = f(INT_MIN, -1);
    printf("%d\n", r);
    return 0;
}


$ gcc -Wall division.c &amp;&amp; ./a.out # => zsh: floating point exception  ./a.out