Hello,

In other people's source code, I have often seen structures declared in both of the following manners:

struct sample {
...
};

typedef struct sample {
...
};

I do not understand why the keyword 'typedef' is used at times. When I remove the keyword, the programs appear to run in the same manner as when I have the keyword there. If someone could clarify why 'typedef' is placed before structure definitions, that would be helpful. Thanks.

Fierytycoon