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
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 |
What are the application of c?
What is the data segment that is followed by c?
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?
What is the modulus operator?
how to write optimum code to divide a 50 digit number with a 25 digit number??
HOW CAN ADD OUR FUNCTION IN LIBRARY.
What is the exact difference between '\0' and ""
What is use of integral promotions in c?
Which driver is a pure java driver
write an algorithm and a program to count the number of elements in a circularly singly linked list
convert 12345 to 54321 withoutusing strig
What are logical errors and how does it differ from syntax errors?