The document contains a C program that defines a structure for storing employee records, including Employee ID, Name, Post, and Department. It prompts the user to input details for five employees and then displays the entered records. The program utilizes standard input and output functions to handle user interactions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
12 views1 page
Employee Records C Program
The document contains a C program that defines a structure for storing employee records, including Employee ID, Name, Post, and Department. It prompts the user to input details for five employees and then displays the entered records. The program utilizes standard input and output functions to handle user interactions.
printf("Enter details of 5 employees:\n"); for (int i = 0; i < 5; i++) { printf("\nEmployee %d:\n", i + 1); printf("Enter EID: "); scanf("%d", &employees[i].EID); getchar(); // To consume the newline character