Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


suppose we use switch statement and we intilize years name
using enum statement like(jan,feb,mar,------dec) we take
integer value as an input .question is that the month which
we analyz is from 0 to 11 bt if i enter 12 than how he
again starts from begning and print jan



suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,-..

Answer / vignesh1988i

enum is a special datatype , whatever we have intilized under enum only we can able to use in our program , hope so ur program contains only enum datatype from that u are giving value for each month through switch case......

so here wat i think is that after u give 11, ie 12th month since u are starting from 0 , if u give 12 inside enum , only 12 entries are there and already u have made use of it.... so again it will start from january only.......

thank u

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

How can I list all of the predefined identifiers?

0 Answers  


What is the restrict keyword in C?

2 Answers  


What do you mean by a sequential access file?

0 Answers  


What is dynamic variable in c?

0 Answers  


Explain the differences between public, protected, private and internal.

2 Answers  


I have a varargs function which accepts a float parameter?

0 Answers  


In a switch statement, what will happen if a break statement is omitted?

0 Answers  


Explain what’s a signal? Explain what do I use signals for?

0 Answers  


wap in c to accept a number display the total count of digit

4 Answers  


write a program in c to read array check element is present or not?

1 Answers  


How do you define a function?

0 Answers  


what is the different bitween abap and abap-hr?

0 Answers   TCS,


Categories