is there any method where you can concatenate a letter and a number together and make it into a structure variable name? I'm trying to make my program generate an individual structure variable for each employee and the struct var name being their id number.
struct employee {
int idnum;
char name[];
float salary;
}
int main(){
//get employee id
int id;
printf("enter id number: ");
scanf("%d", &id);
//makes it into a structure variable
struct employee /*'e' + id no.*/;
}
thanks
idthe array index.struct employee emp;and useempfor the rest of the code.emp.idnum == id