#include #include struct student_card{ char name[50]; char surname[50]; char subject1[50]; char subject2[50]; int studentID; int studentAge; int TotalGrade; float studentImpact; }; int main() { struct student_card student1; struct student_card student2; struct student_card student3; struct student_card * ptr1; ptr1 = &student1; // Accept the values for first student printf("Enter the student1 name :"); scanf("%s",&student1.name); // or we can use scanf("%s",&*(ptr1).name); printf("Enter the student1 surname :"); scanf("%s",&student1.surname); // or we can use scanf("%s",&*(ptr1).surname); printf("Enter the student1 subject1 :"); scanf("%s",&student1.subject1); // or we can use scanf("%s",&*(ptr1).subject1); printf("Enter the student1 subject2 :"); scanf("%s",&student1.subject2); // or we can use scanf("%s",&*(ptr1).subject2); printf("Enter the student1 studentID :"); scanf("%i",&student1.studentID); // or we can use scanf("%s",&*(ptr1).studentID); printf("Enter the student1 studentAge :"); scanf("%i",&student1.studentAge); // or we can use scanf("%s",&*(ptr1).studentAge); printf("Enter the student1 TotalGrade :"); scanf("%i",&student1.TotalGrade); // or we can use scanf("%s",&*(ptr1).TotalGrade); printf("Enter the student1 impact rate :"); scanf("%f",&student1.studentImpact); // or we can use scanf("%s",&*(ptr1).studentImpact); // Print the new values printf("\n\n%s\n",student1.name); printf("%s\n",student1.surname); printf("%s\n",student1.subject1); printf("%s\n",student1.subject2); printf("%i\n",student1.studentID); printf("%i\n",student1.studentAge); printf("%i\n",student1.TotalGrade); printf("%f\n",student1.studentImpact); return 0; }