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
Why shouldn’t I start variable names with underscores?
What is data structure in c and its types?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Explain what header files do I need in order to define the standard library functions I use?
What is data structure in c language?
Explain how do you determine whether to use a stream function or a low-level function?
What are identifiers and keywords in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What are the 4 data types?
What is indirection in c?
Write a program for finding factorial of a number.
Is printf a keyword?
how to count no of words,characters,lines in a paragraph.
What is the symbol indicated the c-preprocessor?