adplus-dvertising
frame-decoration

Question

What is the correct syntax of enum?

a.

enum flag{constant1, constant2, constant3, ....... };

b.

enum flag(constant1, constant2, constant3, ....... );

c.

enum flag[constant1, constant2, constant3, ....... ];

d.

enumflag{constant1, constant2, constant3, ....... };

Posted under C Programming

Answer: (a).enum flag{constant1, constant2, constant3, ....... };

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the correct syntax of enum?