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 is the use of a conditional inclusion statement in C?
Explain the process of converting a Tree into a Binary Tree.
write a function for strtok()??
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is a spanning Tree?
write a pgm to print 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1
Why do we use int main?
C passes By value or By reference?
5 Answers Geometric Software, Infosys,
can u give me the good and very optimised code for a car racing game?
What is an anonymous union and where to apply that ?
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?
What is static memory allocation?