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
What are the salient features of c languages?
write a program for the normal snake games find in most of the mobiles.
How can I change the size of the dynamically allocated array?
What are different types of pointers?
Why pointers are used in c?
what are # pragma staments?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
Why doesnt the call scanf work?
What are the 5 data types?
What is n in c?
Explain the use of #pragma exit?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Tell me what are bitwise shift operators?
What is #define size in c?
regarding pointers concept