Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<ctype.h>
- #include<string.h>
- int main(){
- char eins[49] = "erstes Wort";
- char zwei[49] = "zweites Wort";
- char sum[strlen(eins) + strlen(zwei)];
- int i = 0;
- int j = 0;
- while(i < strlen(eins)){
- sum[i] = eins[i];
- i++;
- }
- while(i < (strlen(eins) + strlen(zwei))){
- sum[i] = zwei[j];
- i++;
- j++;
- }
- printf("%s \n",sum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement