#include
char input[] =”SSSWITECHL1\1\1W\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;
}
when we put \ before a character it is count as an escape character by compiler.
\W is examined as escape character in above program but there is no escape character ‘\W’.