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 |
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it?
Write a program in c to input a 5 digit number and print it in words.
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?
what value is returned to operating system after program execution?
What are linker error?
What is an example of structure?
difference between the array and linked list general difference related to memory
how to find a 5th bit is set in c program
Why ordinary variable store only one value
What is the difference between typeof(foo) and myFoo.GetType()?
plssssss help !!....using array.. turbo c.. create a program that will accept number of words to be consored. .a word must not exceed 10 characters long .the text to be entered will be no longer than 200 characters .there will be no 10 words example: enter number of words to be censor: 5 enter words to censor: windows office microsoft bill gates enter text to censor: bill gates founded microsoft and makes office and windows sample output: <consored> <censored> founded <censored> and makes <censored> and <censored>
simple program of graphics and their output display