data structures using int inprintf("\ enter the number of students ")scanf("% "& )for( = ; < ; ++ptr_stud[ (struct student *)malloc(sizeof(struct student))printf("\ enter the data for student % " + )printf("\ roll no ")scanf("% "&ptr_stud[ ]->r_no)printf("\ name")gets(ptr_stud[ ]->name)printf("\ course")gets(ptr_stud[ ]->course)printf("\ fees")scanf("% "&ptr_stud[ ]->fees)printf("\ details of students")for( = ; < ; ++printf("\ roll no % "ptr_stud[ ]->r_no)printf("\ name % "ptr_stud[ ]->name)printf("\ course % "ptr_stud[ ]->course)printf("\ fees % "ptr_stud[ ]->fees)return output enter the number of students enter the data for student roll no namerahul coursebca fees details of students roll no name rahul course bca fees write program that passes pointer to structure to function #include #include #include struct student int r_nochar name[ ]char course[ ]int fees}void display (struct student *)int main(struct student *ptrptr (struct student *)malloc(sizeof(struct student))printf("\ enter the data for the student ")printf("\ roll no ")scanf("% "&ptr->r_no)