[prev] [index] [next]

typedef and struct

We can now define a structured data type for Worker objects:

typedef char Date[11]; // e.g. "18-08-2014"
typedef struct {
	char     name[MAX_NAME_LENGTH];          
	Date     birthday;
	EmpType  status;
	float    salary;
} WorkerT;