#include #include struct horse_record { float weight; char name[19]; unsigned char age; }; // Yes, really, a semicolon typedef struct horse_record hrec; void print_horse(struct horse_record hr){ printf("Name: %s\n" "Age: %d\n" "Weight: %f\n", hr.name, hr.age, hr.weight); } int main(){ struct horse_record sam; sam.weight = 1250.2; strcpy(sam.name, "sam"); sam.age = 12; print_horse(sam); return 0; }