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
Answer Posted / 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 View All Answers
How can I find out the size of a file, prior to reading it in?
What does c in a circle mean?
What is void main ()?
What is putchar() function?
What are the advantages of using new operator as compared to the function malloc ()?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What are the different types of C instructions?
can any one provide me the notes of data structure for ignou cs-62 paper
What are valid operations on pointers?
What library is sizeof in c?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
How is pointer initialized in c?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Explain function?
How can I get back to the interactive keyboard if stdin is redirected?