Can anyone tell me how to add an array of numbers in this struct node?
typedef struct node *node_ptr;
struct node {
char *Dept_name;
int dept_IDS[1000];
node_ptr next;
}
So basically the program is like this ..
Enter the character name where you want to put you ID in:
You typed: abc
/* It searches for that name in the linked list (which is Dept_Name) and asks you to enter an int ID */
This integer ID is stored in that array in that node where that Dept_Name is....
How to add an integer inside the array of dept_IDS [] for a particular department name? And also we are working on a linked list
Please reply ASAP!!!!
Cheers