/* Student Grades Database example using 2-D arrays */ /* NOTE: gets() function is used and compiliation of this source code gives warning */ #include #include #include #define CLASSES 3 #define GRADES 2 int grade[CLASSES][GRADES]; void enter_grades(void); int get_grade(int num); void disp_grades(int g[][GRADES]); int main(void) { char ch, str[80]; enter_grades(); disp_grades(grade); return 0; } void enter_grades(void) { int t, i; char s[80]; for(t=0; t