Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
case 3
--i;
Output of i after executing the program
Answers were Sorted based on User's Feedback
WHAT IS THE VALUE OF I BEFORE ENTERING THE SWITCH CASE???
if the values is something other than 1 , 2 , 3 there wont
be any effect, ASSUMING u have forgotton to give the curly
braces.
otherwise,
you will get an error, if the curly braces are not there
for the switch case.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / jack
the value of i that was initialized before the switch
statement remains unchanged as the switch statement does
not have flower braces.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / vinay
the value of i if we forget the mistake u done
it is i=2;
| Is This Answer Correct ? | 1 Yes | 3 No |
When is an interface "good"?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is the advantage of using #define to declare a constant?
0 Answers Agilent, ZS Associates,
What is meaning of "Void main" in C Language.
24 Answers Ford, GU, HCL, IBIBS, JUW, TCS,
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is logical error?
int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) main() { if(-1<=SIZE) printf("1"); else printf("2"); }
What are dangling pointers? How are dangling pointers different from memory leaks?
why in C,C++'s int size is 2 byte and .net(c#) int Size is 4 byte?
Do you have any idea about the use of "auto" keyword?
which one is highest Priority in c? a)=,b)+,c)++,d)==
What is void pointers in c?