When we write the prototype of strcpy() function it goes like this -
char *strcpy(char *s1, const char *s2);
here the second parameter const char*s2 which is to be copied to s1 is of constant type . Why we take it as a constant ?
When we write the prototype of strcpy() function it goes like this -
char *strcpy(char *s1, const char *s2);
here the second parameter const char*s2 which is to be copied to s1 is of constant type . Why we take it as a constant ?