ldiv_t ldiv(long int numer,long int denom);
#include <stdio.h> #include <stdlib.h> int main(){ long x = 234, y = 23; //為變數賦初值 ldiv_t a = ldiv(x, y); //求234除以23的商和餘數 printf("%ldt%ldn", a.quot, a.rem); return 0; }