/* File: rec1.c Simple use of records */ typedef struct tag { int hour ; int minute ; } time_t ; main() { time_t when ; when.hour = 2 ; when.minute = 4 ; printf ("Time is %d:%02d\n", when.hour, when.minute) ; }