[Solved] Program Crashed (String Manipulation) [closed]
[ad_1] Perhaps like this. Note that string concatenation cannot be done on simple char types. #include <stdio.h> #include <string.h> int main (void) { char s1[] = “stack”; // skipped the string inputs char s2[] = “overflow”; char str[120]; size_t i; // var type returned by `strlen` size_t index = 0; size_t leng1 = strlen(s1); size_t … Read more