Divide two long integer: how to use ldiv and ldiv_t
#include <stdio.h> #include <stdlib.h> int main () { ldiv_t divresult; divresult = ldiv (635537,189); printf ("635537 / 189 = %d ( %d", divresult.quot, divresult.rem); return 0; }