/* This program is identical to src/id1.c, except it uses a typedef so that you can assign a type to the struct. */ #include #include typedef struct intdouble { int i; double d; } ID; int main() { ID id1; id1.i = 5; id1.d = 3.14; printf("%d %.2lf\n", id1.i, id1.d); return 0; }