Hi all,
When I am going through some C code, I found
1) One function is returning "static void". I am not getting why void will be static.
2) enum definition dues not contain any tags. only it had variable in that. with out any tags, how it will be used in remaining part.
like
enum { MSG_MSGDUMP, MSG_DEBUG, MSG_INFO, MSG_WARNING, MSG_ERROR };
Kindly requesting for some reference.
When I am going through some C code, I found
1) One function is returning "static void". I am not getting why void will be static.
2) enum definition dues not contain any tags. only it had variable in that. with out any tags, how it will be used in remaining part.
like
enum { MSG_MSGDUMP, MSG_DEBUG, MSG_INFO, MSG_WARNING, MSG_ERROR };
Kindly requesting for some reference.
Comment