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
Write a program on swapping (100, 50)
Explain what is operator promotion?
What is static memory allocation?
How to explain the final year project as a fresher please answer with sample project
how to capitalise first letter of each word in a given string?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
Can I initialize unions?
Explain function?
What is a global variable in c?
What is structure and union in c?
Explain how can I pad a string to a known length?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is a pragma?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same