+1 vote
in Technology by (1.7m points)
What is the problem with the following coding snippet?

1 Answer

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