Program to find employee details using structure in c?

1 answer

Answer

1272939

2026-08-13 10:40

+ Follow

#include<stdio.h>

#include<conio.h>

struct employee

{

char name[100];

int age,salary;

};

void main()

{

struct employee details;

clrscr();

printf("\n the name of the employee is ... \n the age of the employee is... \n the salary acquired is...");

scanf("%c%d%d",&details.name,&details.age,&details.salary);

clrscr();

printf("\n the name is... \n the age is... \n the salary is...",details.name,details.age,details.salary);

getch();

}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.