hi i am writing a program
#include"stdio.h"
main()
{
FILE *fp
char another='Y'
struct emp
{
char name[40];
int age;
float bs;
};
struct emp e;
fp=fopen("EMPLOYEE.DAT","w"
if(fp==NULL)
{ puts("cannot open file"
exit();
}
while(another=='Y');
{ printf("\n ENTER NAME,AGE AND BASIC SALARY"
scanf("%s %d %f",e.name,&e.age,&e.bs);
fprintf(fp,"%s %d %f\n",e.name,e.age,e.bs);
printf("add another record(y/n)"
fflush(stdin);
another=getche();
}
fclose(fp);
}
what is the difference between "stdio.h" and <stdio.h>?
what is this fflush(stdin)?what is the job of this?if i donot write what problem could i face???plz i am a beginner.. give response as simple as u can(if possible with an example).
thanks