escape sequence in c

Posted by prp on Stack Overflow See other posts from Stack Overflow or by prp
Published on 2011-01-16T08:22:09Z Indexed on 2011/01/16 8:53 UTC
Read the original article Hit count: 232

Filed under:
int main()
   {       char *arr="\\0\1\8234\0"; int i=0;
           while(arr[i])
           {        switch(arr[i])
                    {
                            case '0': printf("is no"); break;
                            case '00': printf("is debugging\n"); break;
                            case 0: printf("It is Avishkar\n"); break;
                            case '\\': printf("This "); break;
                            case '\1': printf("t s"); break;
                            case '8': printf("o s"); break;
                            case '2': printf("imp"); break;
                            case '3': printf("le as"); break;
                            case 2: case 3: case 4:
                            case 8: printf("This "); break;
                            default: printf(" it seems\n"); break;}
                    i++; } }

please explain the o/p ? i am not able to get it..

© Stack Overflow or respective owner

Related posts about c