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


Please Help Members By Posting Answers For Below Questions

Write a program on swapping (100, 50)

640


Explain what is operator promotion?

639


What is static memory allocation?

611


How to explain the final year project as a fresher please answer with sample project

472


how to capitalise first letter of each word in a given string?

1436






how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1499


Can I initialize unions?

596


Explain function?

665


What is a global variable in c?

592


What is structure and union in c?

605


Explain how can I pad a string to a known length?

657


How will you declare an array of three function pointers where each function receives two ints and returns a float?

786


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.

1524


What is a pragma?

672


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

651