Advertisement
Guest User

FFFF

a guest
Mar 18th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<ctype.h>
  4. #include<string.h>
  5.  
  6. int main(){
  7.  
  8. char eins[49] = "erstes Wort";
  9. char zwei[49] = "zweites Wort";
  10. char sum[strlen(eins) + strlen(zwei)];
  11. int i = 0;
  12. int j = 0;
  13.  
  14. while(i < strlen(eins)){
  15. sum[i] = eins[i];
  16. i++;
  17. }
  18. while(i < (strlen(eins) + strlen(zwei))){
  19. sum[i] = zwei[j];
  20. i++;
  21. j++;
  22. }
  23.  
  24. printf("%s \n",sum);
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement