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 is the difference between char array and char pointer?
What are dangling pointers? How are dangling pointers different from memory leaks?
If I have a char * variable pointing to the name of a function ..
Is array a primitive data type in c?
What is meant by initialization and how we initialize a variable?
Explain the difference between call by value and call by reference in c language?
program for reversing a selected line word by word when multiple lines are given without using strrev
Explain how can a program be made to print the line number where an error occurs?
With the help of using classes, write a program to add two numbers.
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What is meant by type specifiers?
What is unary operator?
If null and 0 are equivalent as null pointer constants, which should I use?
What does it mean when the linker says that _end is undefined?
What is a shell structure examples?