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


Please Help Members By Posting Answers For Below Questions

When should you not use a type cast?

651


What should malloc(0) do?

608


What functions are in conio h?

649


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

644


What are identifiers c?

560






How can I use a preprocessorif expression to ?

592


What is the difference between c and python?

577


How can you access memory located at a certain address?

661


What are the benefits of organizational structure?

564


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1364


What are the advantages of using macro in c language?

585


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2920


explain how do you use macro?

663


Why doesnt the call scanf work?

658


What is && in c programming?

671