1 struct dm 2 { 3 unsigned q; 4 unsigned r; 5 }; 6 7 struct dm dm(a,b)8 dm (a, b) 9 unsigned a, b; 10 { 11 struct dm qr; 12 13 qr.q = a / b; 14 qr.r = a % b; 15 return qr; 16 } 17 main()18 main () 19 { 20 struct dm qr; 21 22 qr = dm (100, 30); 23 printf ("%u, %u\n", qr.q, qr.r); 24 } 25