I am getting different values on sizeof for the same string value.
when I run the below code in C:
char str[] = "November";
char *s = "November";
printf(" str[] = %ld\n",sizeof(str));
printf(" *s = %ld\n",sizeof(s));
expected output:
str[] = 9
*s = 9
Actual output:
str[] = 9
*s = 8
What is going on actually?