1
What is the problem with the following coding snippet?

Open 1 Answers 36 Views Technology
What is the problem with the following coding snippet?

1 Answer

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