div_t div(int numer,int denom);
#include<stdio.h> #include<stdlib.h> int main() { int x = 512, y = 28; //為變數賦初值 div_t a = div(x, y); //求512除以28的商和餘數 printf("%dt%dn", a.quot, a.rem); return 0; }