reopened by
572 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 ?

reopened by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
Akash Kumar Roy asked Apr 21, 2018
372 views
"If a string constant is given then through by a pointer we can access the characters but we can't change any of the characters"Can someone please expain this?
1 votes
1 votes
2 answers
2
1 votes
1 votes
1 answer
3
Harikesh Kumar asked Jan 14, 2018
352 views
step by step compile it and provide output