1: The size is printed as 10, which is the specified size of the array.Code:1: char parray[10]; strcpy(parray, "abcdefghij"); printf("%s, %lu\n", parray, sizeof(parray)/sizeof(char)); 2: char *marray = malloc(10*sizeof(char)); strcpy (marray, "abcdefghij"); printf("%s, %lu\n", marray, sizeof(marray)/sizeof(char));
2: The size is printed as 8, no matter what number I initialize it to.
Why?