Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct Student{
- char name [20] ;
- int grade ;
- int number ;
- }Student;
- typedef struct Class{
- char className[20] ;
- Student Students[30] ;
- }Class;
- double calculateAverageGrade(I want to pass the Students[30] array here ) {
- int i ;
- int sum = 0 ;
- for(i=0;i<3;i++) {
- }
- return sum/3 ;
- }
- int main() {
- Student s1 ={"John",75,758} ;
- Student s2 = {"Jack",85,123} ;
- Student s3 = {"Lisandra",50,321} ;
- Class c1 ={'