what is the reason i put the scanf [^%\n] why is the other code is not read by the compiler
teachers t;
printf("Teachers Record!\n");
printf("Enter Fullname: ");
scanf("%s",&t.fullname);
printf("Enter Age: ");
scanf("%d",&t.age);
printf("Enter Gender(M/F): ");
scanf("%s",&t.gender);
printf("Teacher Information: %s %d %s ",t.fullname,t.age,t.gender);