N number of Name, address,phone in a file and display in proper format in C Program
#include<stdio.h> #include<conio.h> main() { char name[50]; char address[50]; char telno[50]; FILE *fp; int i,n; fp=fopen("a.dat","a"); printf("How many records:"); scanf("%d",&n); for(i=0;i<n;i++) { printf("\nEnter the name:"); scanf("%s",name); printf("\nEnter the address:"); scanf("%s",address); printf("\nEnter …
N number of Name, address,phone in a file and display in proper format in C Program Read More