SubhanUllah Posted October 25, 2022 Report Posted October 25, 2022 #include <stdio.h> #include <string.h> int main(){ char s1[20] = "hello"; char s2[] = " world"; strcat(s1, s2); printf("%s\n", s1); strcpy(s1, s2); printf("%s\n", s1); } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.