char *s1 = "Hello, World!";
s2 = (char *)malloc(strlen(s1)*sizeof(char));
The above program is an implementation of strcpy()
now for this example the length of s2 is greater than s1, shudnt it be the same??
the answer i get is "Hello, World!o"
length of s1 = 13
length of s2 = 14
why is this happening?