My Thinking:
struct student
{
int *subjects_number = new int [NoOfSubjects];
}
main()
{
int NoOfSubjects;
cin >> NoOfSubjects;
}
Objective: students could have taken different number of subjects. Now modify the structure such that its variable subjects_numbers has type pointer to int so that we can store scores for different number of subjects for each student.