Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
case 3
--i;
Output of i after executing the program
Answer Posted / 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 |
Post New Answer View All Answers
What are structural members?
What is hash table in c?
What is extern storage class in c?
What is break statement?
What's the difference between constant char *p and char * constant p?
What is hashing in c?
What is pointers in c with example?
Where local variables are stored in c?
What is wrong with this code?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
What is meant by operator precedence?
What is anagram in c?
Is main is a keyword in c?
Can you define which header file to include at compile time?
What is an auto variable in c?