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
What is the use of void pointer and null pointer in c language?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
How do we declare variables in c?
How can I trap or ignore keyboard interrupts like control-c?
What is the heap?
What are the similarities between c and c++?
What is the use of sizeof?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Here is a neat trick for checking whether two strings are equal
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is getch?
Explain enumerated types.
How the c program is executed?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is nested structure with example?