TITLE: How many enums values does it take to ... PROBLEM: gtj@werple.apana.org.au (Glenn Jayaputera) Is it possible to count the number of items in enum type?? for instance enum Fruit {orange, apple, grape}; I would like to tell how many items in Fruit...? RESPONSE: fjh@munta.cs.mu.OZ.AU (Fergus Henderson) 3. ;-) RESPONSE: maxtal@physics.su.OZ.AU (John Max Skaller) Actually, Fergus is wrong. There are 4. No, I'm not kidding, these are the new C++ rules. The range of values of an enum is the same as the smallest bit field that can hold it, the underlying type is unsigned unless one of the specified enumerators is negative. Fruit above has four legal values which convert to 0,1,2,3. Add banana and tomato and it has eight.