#include
char input[]=”SSSWILTECH1\1\11W\WALLMP1″;
int main()
{
int i,c;
for(i=2;(c=input[i])!=”;i++)
{
switch(c)
{
case ‘a’:putchar(‘i’);continue;
case ’1′:break;
case 1:while((c=input[++i])!=’\1′&&c!=”);
case 9:putchar(‘S’);
case’E’:
case’L’:continue;
default:putchar(c);continue;
}
putchar(‘ ‘);
}
return 0;
}
the output of this program is “SWITCH S”
i know the reason for “SWITCH ”
but, Why (or how) does the output has “S” in the end …?