Semester : S1 and S2
Subject : Computer Programming
Year : 2017
Term : DECEMBER
Branch : BIOTECHNOLOGY
Scheme : 2015 Full Time
Course Code : CS 100
Page:50
fptr=(fopen("C:\\s
tudent.txt","a"));
if(fptr==NULL) {
printf ("Error!");
exit(1);
}
for (i=O;i
student%d\nEnter name: ",i+1);
scanf ("%d", &marks) مم
fprintf(fptr,"\nName: %s \nMarks=%d \n",name,marks) ;
scanf ("ss",name) 7 printf ("Enter marks: ");
fclose(fptr); return
0;