Created
May 16, 2022 13:21
-
-
Save Dbhardwaj99/7ffa3532a0c63ff8e1170d7c95f85230 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
char s1[100]; | |
scanf("%[^\n]%*c", s1); | |
char s2[100]; | |
scanf("%[^\n]%*c", s2); | |
int length, j; | |
length = 0; | |
while (s1[length] != '\0') { | |
length++; | |
} | |
for (j = 0; s2[j] != '\0'; j++, length++) { | |
s1[length] = s2[j]; | |
} | |
s1[length] = '\0'; | |
printf("%s",s1); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment