Are both \ and 0 characters stored in the same location or in different locations in the end of the string?
main()
{
char x[]="Hello\0";
char y[]="Hello12";
char z[]="Hello\012";
char w[]="Hello1234";
printf("%d %d %d %d", sizeof(x), sizeof(y), sizeof(z), sizeof(w));
}
Output:
7 8 7 10
Please explain the output of the code.