#include #include struct horse { int age; char name[19]; float weight; void (*print_info)(struct horse); }; void print_horse_info(struct horse self){ printf("Name: %s Age: %d Weight: %f\n", self.name, self.age, self.weight); } int main(){ struct horse joe; joe.age = 17; joe.weight = 1021.6; strcpy(joe.name, "joe"); joe.print_info = print_horse_info; joe.print_info(joe); return 0; }