Good morning.
I was working with the code of a program and I have a doubt about the data structures. We have these two cases, one in the "programa.c" and another in the "programa.h":
programa.c:
struct _estructura {
/* El código aqui es indiferente */
};
programa.h:
typedef struct _estructura estructura;
I would like to know the difference in defining the structure directly in the program.c and the previous case. That is, in the .c we are declaring the structure and we define it in the .h? If someone could clarify it to me ...
Thank you very much, Greetings