in Programming in C reopened by
623 views
2 votes
2 votes
#include <stdio.h>

int main ()
{
    char *ptr = "\123456789\n"; 
    printf("%s",ptr);

}



Can anyone explain what happend with escaping character before 1 ?

in Programming in C reopened by
623 views

4 Comments

@soumya ,yeah, it is showing , octal escape sequence out of range for 656..could u please explain why it is giving warning  "octal escape sequence out of range" for 656 ?
0
0
The reason behind it is - Every escape sequence take 1-byte space.
Now with 8 bits maximum 255 i.e '\377 is possible.
4
4
Thanks a lot @soumya...
0
0

Please log in or register to answer this question.