Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
int main() { char str1[20] = "Hello "; char str2[] = "World!"; // Concatenate str2 to str1 (the result is stored in str1) strcat(str1, str2); // Print str1 printf("%s", str1); return 0; }
Hello World!