hey guys ! so im learning c, got a question:
so say i have a struct of students and inside the struct is name , id , fatherName, motherName.
like this
struct stds {
int id;
char name[21];
char fatherName[21];
char motherName[21];
} std[100];
suppose they are 100 stds and i want to find them by typing id.....
printf ("Search for a student record, type id: ");
scanf ("%i",&searchid);
I want to view their name ,fathers name and mothers name by typping his id, how would i do that?
Thanks brouss !