Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
case 3
--i;
Output of i after executing the program
Answer Posted / shruti
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 |
Post New Answer View All Answers
Is a house a shell structure?
What is the 'named constructor idiom'?
What is s or c?
What is c system32 taskhostw exe?
What is oops c?
What are high level languages like C and FORTRAN also known as?
What is typedef struct in c?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
Why we not create function inside function.
What is the role of this pointer?
What are the data types present in c?
what value is returned to operating system after program execution?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What is the c value paradox and how is it explained?