#include <stdio.h>
int main () {
struct Record {
int employeeNumber;
char employeeName;
float salary;
int yearsServiced;
} record[5];
struct record[0] = {46723, "Fattah", 4550.00, 8};
printf("TheEmployee number is %d", record[0].employeeNumber);
}
Why my program cannot run? please help. Thanks for advance.
struct record[0]declares an array of size 0.char employeeName;-->char *employeeName;,struct record[0] = {46723, "Fattah", 4550.00, 8};-->record[0] = (struct Record){46723, "Fattah", 4550.00, 8};