@swetha-m Active 2 years, 5 months ago 38 Reputation ActivityProfileGroups 0Forums Topics StartedReplies CreatedEngagementsFavorites Search replies: Forum Replies Created Viewing 2 posts - 1 through 2 (of 2 total) Author Posts May 26, 2023 at 5:21 am #22963 Swetha MParticipant include<stdio.h> void main() { FILE*fptr; char name[20]; int age; float salary; fptr=fopen(“emp.txt”,”w”); if(fptr==NULL) { printf(“File does not exists\n”); return; } printf(“Enter the name\n”); scanf(“%s”,name); fprintf(fptr,”Name=%s\n”,name); printf(“Enter the age\n”); scanf(“%d”,&age); fprintf(fptr,”Age=%d\n”,age); printf(“Enter the salary\n”); scanf(“%f”,&salary); fprintf(fptr,”Salary=%.2f\n”,salary); fclose(fptr); } May 26, 2023 at 5:02 am #22950 Swetha MParticipant CUBE in SQL Server Author Posts Viewing 2 posts - 1 through 2 (of 2 total)