/* a program of printing patients' info
-struct Patient{}
-get info of 3 patient from console
-print all the elements
*/
struct Patient{
    char name[50]; //DON'T: char *name[50]
    char idNumb[100];
    int age;
};
typedef struct Patient pat;
pat getInfo(pat person);

#include <stdio.h>
int main() {
    pat person1, person2;
    person1 = getInfo(person1);

    return 0;
}

pat getInfo(pat person){
    printf("enter name: ");
    fgets(person.name, sizeof(person.name), stdin);


    printf("")


    return person;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: