Answer:
Step-by-step explanation:
A structure in C language is a user defined data structure. It contains fields or members which are user defined data types or system defined data types. It defines a storage area of a definite size, and describes how each byte in that storage area is to be treated.
#include <stdio.h>
#define N 50
#define NAME_LIMIT 64
struct Employee {
int id;
char name[NAME_LIMIT];
double salary;
} staff_list [N];
main()
{
int i; double salary;
// assume that the staff_list array has been initialized with proper data.
printf("Details of staff with salary between 25,000 and 40,000: \\");
for (i=0; i<N; i++) {
salary = staff_list[i].salary;
if ( salary >= 25000 && salary <=40000)
printf("%d : %s : %d \\", staff_list[i].id, staff_list[i].name, salary);
}
}