79155719

Date: 2024-11-04 14:03:52
Score: 0.5
Natty:
Report link
char str1[10] = "Hello";

allocates 10 characters, When concatenating, I think you would need 11 chars because the string needs to include the "end-of-string" ('\0') terminating character.

I guess replacing with

char str1[11] = "Hello";

would solve your problem.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aname