
Implement a function that divides a by b and writes the quotient and the remainder through q and r, choosing the pair whose remainder is never negative.
div_mod_floor(7, 2, &q, &r)3 1div_mod_floor(-7, 2, &q, &r)-4 1div_mod_floor(7, -2, &q, &r)-3 1div_mod_floor(-1, 5, &q, &r)-1 4div_mod_floor(-8, -4, &q, &r)2 0div_mod_floor.c
Run the tests to grade your code
Implement a function that divides a by b and writes the quotient and the remainder through q and r, choosing the pair whose remainder is never negative.
div_mod_floor(7, 2, &q, &r)3 1div_mod_floor(-7, 2, &q, &r)-4 1div_mod_floor(7, -2, &q, &r)-3 1div_mod_floor(-1, 5, &q, &r)-1 4div_mod_floor(-8, -4, &q, &r)2 0div_mod_floor.c
Run the tests to grade your code
Memory will appear here