Hi, I have a C programming question.
I want to know the difference between the two and where one is useful over other?
Suppose I have a struct called employee as below:
struct emp{
char first_name[10];
char last_name[10];
char key[10];
};
Now, I want to store the table of employee records, then which method should I use:
struct emp e1[100]; // Or
struct emp * e1[100];
I know the two are not same but would like to know a use case where second declaration would be of interest and more advantageous to use.
Can someone clarify?