typedef struct { int x[3] ; int y[3]; float m[3];} example;
example p[3];
i want to make one example program just for understanding the struct method about reading number x which is one int numer , reading 3 y numbers which are grades for each person and the m number which is the average (y[1]+y[2]+y[3])/3
how can i make itfor prinding that
for (i=0;i<max_num;i++)
printf(" the student %d got %f : average", p.x[i], p.m[i]);