Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
case 3
--i;
Output of i after executing the program
Answers were Sorted based on User's Feedback
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 |
Answer / 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 |
Answer / vinay
the value of i if we forget the mistake u done
it is i=2;
| Is This Answer Correct ? | 1 Yes | 3 No |
Write a program using bitwise operators to invert even bits of a given number.
main() {int a=200*200/100; printf("%d",a); }
Define Array of pointers.
Explain the difference between getch() and getche() in c?
struct node {struct node*temp,*new} prinf("%d",sizeof(struct node));
print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20
Lists the benefits of c programming language?
Explain setjmp()?
What is the difference between fread and fwrite function?
input any 4 digit number and find the difference of all the digits?
Can true be a variable name in c?
write a program to sort the elements in a given array in c language