fp= fopen("Quiz.txt", "r");
fflush(stdin);
printf("Enter Name To Search:");
gets(srch);
if(srch==std[i].name)
{
printf("\n Student Name: %s", std[i].name);
printf("\n Roll Number :%d", std[i]. roll);
printf("\n First Quiz Marks :%d", std[i]. quiz1);
printf("\n Second Quiz Marks :%d", std[i]. quiz2);
printf("\n Third Quiz Marks :%d", std[i]. quiz3);
printf("\n Fourth Quiz Marks :%d", std[i]. quiz4);
printf("\n Fifth Quiz Marks :%d", std[i]. quiz5);
}
else{
printf("No Data Of %s", srch);
}
getchar();
fclose(fp);
I am not getting data related to search that user search suppose if user search their name if the name is available in a file then it returns with users name roll number and 5 quiz marks if not then return no data available