Q: Define a structure of student with the following fields: rollNo, name and marks. Write a program to read and store the data of at most 30 students in an array. Also display the average marks of
the students.
Solution :
#include<stdio.h>
#define MAX 3
typedef struct
Stu
{
int roll;
char
name[20];
int mark;
}student;