I came across a part of question in which, I am getting an output, but I need a explanation why it is true and does work?
char arr[4]; strcpy(arr,\"This is a li
Your code has some memory issues (buffer overrun) . The function strcpy copies bytes until the null character. The function printf prints until the null character.
strcpy
printf