GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Testing Tools  >  SilkTest

 Print  |  
Question:   What is enumerated data type?



December 12, 2007 02:55:55 #1
 sushkumar   Member Since: January 2006    Total Comments: 12 

RE: What is enumerated data type?
 
An enumerated data type is a data type that groups together a set of values and orders them sequentially from 1 to n. You declare an enumerated type when you want a variable to hold only a limited number of distinct values. For example, you can define an enumerated type named colors whose legal values are "red" and "green" and "yellow". Examples type COLOR is enum red green // red = 1, green = 2 type YESNO is enum NO = 0 YES // NO = 0, YES = 1
     

 

Back To Question