Write a program to enter name, roll number and marks of 10 students and store them in the file.
1 Answer
#include<stdio.h>
#include<conio.h>
void main()
{
char name[20];
int roll,mark,i;
FILE *fp;
clrscr();
fp=fopen("student.txt", "a");
for(i=0;i<10;i++)
{
print("Input name, roll no and marks of a student");
scanf("%s%d%d",name,roll,&mark);
fprintf(fp, "%s%d%d",name,roll,mark);
}
fclose(fp);
getch();
}
-
Who is a system analyst? What are the characteristics of system analysts? 1
-
What are the different stages of the system development life cycle (SDLC) 1
-
What do you understand about AI? What are the negative and positive aspects of AI in society? 1
-
How does an AI application work? Can a computer really think with the aid of AI? 1