/* * structs.c * * An example of using structs in C, along with arrays. * * To compile: gcc -o structs1 structs1.c * */ #include //#include int main() { int i; char entry[80], entries = 4, junk; struct person { char name[80]; int age; float height; }; do { printf("How many people in your database? "); scanf("%d", &entries); } while (entries <= 0); struct person people[entries]; for(i=0; i