#include <stdio.h>
struct NAME {
char first[10];
char middle[10];
char last[15];
};
struct PERSON {
char SSN[10];
struct NAME name; };
typedef struct PERSON person
void printpeople(person[], int);
person read() {
return (parson) { .SSN = ssn, { .first = first, .middle = middle, .last = last }};
}
person[10];
int main() {
for (int i = 0; i < 10; i++) {
person[i] = read();
}
}
Comments
Leave a comment