Advertisement

05.07.2008 at 12:19PM PDT, ID: 23383989
[x]
Attachment Details

Enumeration type definition syntax

Asked by naseeam in C Programming Language

Does the last entry in enumeration type definition must have comma after it?  For example,

typedef enum {
    BLUE = 0,
    RED,
   GREEN
} color;

Do I need comma after GREEN?  

Thanks,
Start Free Trial
 
Loading Advertisement...
 
[+][-]05.07.2008 at 12:19PM PDT, ID: 21519507

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C Programming Language
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.07.2008 at 12:19PM PDT, ID: 21519510

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.07.2008 at 12:22PM PDT, ID: 21519536

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628