C Programming - Structures, Unions, Enums - Discussion

Discussion Forum : Structures, Unions, Enums - True / False Questions (Q.No. 6)
6.
Which of the following statement is True?
User has to explicitly define the numeric value of enumerations
User has a control over the size of enumeration variables.
Enumeration can have an effect local to the block, if desired
Enumerations have a global effect throughout the file.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
12 comments Page 2 of 2.

Kavitha said:   2 decades ago
eg:

void add()
{
enum a={mon,tue,wed};
..
..
}


here the enum variables are available only to the add method and not to anyother methods.
(3)

Swapnil said:   2 decades ago
please give me example


Post your comments here:

Your comments will be displayed after verification.