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
Why is C language being considered a middle level language?
What are header files in c?
simple program of graphics and their output display
For what purpose null pointer used?
What are types of functions?
What is a list in c?
What is a global variable in c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is a stream in c programming?
What are the types of functions in c?
Tell us bitwise shift operators?
How do you determine the length of a string value that was stored in a variable?
Explain the difference between the local variable and global variable in c?
What is the difference between array_name and &array_name?
What does double pointer mean in c?