Skip to main content
Search
Search This Blog
Livecodo
Pages
Home
Courses
Blog
About us
More…
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
April 11, 2024
Write a C program to store n employee records based on EMP_ID,EMP_NAME,EMP_DEPTID,EMP_PHNO,EMP_SALARY and display all the details of employees in sorted order.
#include
#include
#include
struct employee { int EMP_ID; char EMP_NAME[50]; char EMP_DEPTID; int EMP_PHNO; float EMP_SALARY ; }; int main() { int n; printf("enter the no. of employee"); scanf("%d",&n); struct employee e[50]; for(int i=0;i
Popular Posts
March 26, 2024
Dynamic Memory allocation in C
May 18, 2024
Searching and sorting Algorithm in C