in Technology by (1.8m points)
What is the problem with the following coding snippet?

1 Answer

0 votes
by (1.8m points)
char *s1 = "hello",*s2 = "welcome";
   
strcat(s1,s2);
s1 points to a string constant and cannot be altered.

Related questions

0 votes
asked Oct 28, 2021 in Education by JackTerrance (1.8m points)
...