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


Please Help Members By Posting Answers For Below Questions

Why shouldn’t I start variable names with underscores?

623


What is data structure in c and its types?

596


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.

1739


Explain what header files do I need in order to define the standard library functions I use?

649


What is data structure in c language?

604






Explain how do you determine whether to use a stream function or a low-level function?

630


What are identifiers and keywords in c?

573


How will you declare an array of three function pointers where each function receives two ints and returns a float?

781


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

726


What are the 4 data types?

600


What is indirection in c?

627


Write a program for finding factorial of a number.

633


Is printf a keyword?

759


how to count no of words,characters,lines in a paragraph.

3905


What is the symbol indicated the c-preprocessor?

696