Hi, i have a c programming doubt? I want to know the difference between the two and where one is use
        Posted  
        
            by aks
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by aks
        
        
        
        Published on 2010-05-11T10:11:44Z
        Indexed on 
            2010/05/11
            10:14 UTC
        
        
        Read the original article
        Hit count: 150
        
c
Hi, i have a c programming doubt?
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]; // Orstruct 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?
© Stack Overflow or respective owner