#include <stdio.h>
int main(void) {
char s1[15]="SREE";
char s2[10]="ALL THE BEST";
strcpy(s2,s1);
printf("\n%s",s2);
return 0;
}
1)How s2 will contain a string of size 12, while it only contain size 10?
2)Why strcpy will not merge the rest string of s2 with s1 after copying , I mean “SREETHE BEST”
Will it work like pointer that s2 pointing to same as s1?
Anything link good to read about strcpy