#include "arithmeticDivision.h" #include #include #include int* division_integer(int dividend, int divisor) { if(divisor == 0) { return NULL; } // Overflow protection if (dividend == INT_MIN && divisor == -1) { return NULL; } int* result = malloc(sizeof(int)); *result = dividend / divisor; return result; }