enum weekDays{day_Sunday,day_Monday,day_Tuesday,day_Wednesday,day_Thursday,day_Friday,day_Saturday};
enum directions{direction_East,direction_West,direction_North,direction_South,direction_NorthEast,direction_NorthWest,direction_SouthEast,direction_SouthWest};
enum months{month_Jan,month_Feb,month_Mar,month_Apr,month_May,month_Jun,month_Jul,month_Aug,month_Sep,month_Oct,month_Nov,month_Dec};
void joiningDetails( NSString *stuName,unsigned short int weekDays,unsigned short int directions,unsigned short int months)
{
NSLog(@"%@ day=%i,direction=%i,month=%i",stuName,weekDays,directions,months);
}
int main(int argc,const char * argv[]){
joiningDetails(@"Naresh",day_Thursday,direction_NorthEast,month_Jul);
joiningDetails(@"Mahesh",day_Friday,direction_East,month_Sep);
joiningDetails(@"Dinesh",day_Saturday,direction_SouthEast,month_Aug);
return 0;
}
Sign up here with your email
ConversionConversion EmoticonEmoticon