|
-
June 24th, 2002, 11:09 AM
#1
Why declare struct's with keyword 'typedef'?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|