Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. char *Teste (char *,const char *);
  4.  
  5. int main (){
  6. char a[20]="ace", b[10]="bdf";
  7. printf ("\n%s", Teste(&a,&b));
  8. return 0;
  9. }
  10.  
  11. char *Teste (char *s1,const char *s2){
  12. char *aux =s1;
  13. while(*s1){
  14. s1++;
  15. }
  16. for (;(*s1 = *s2)!='\0';s1++,s2++);
  17.  
  18. return aux;
  19. }
  20.  
  21. while (!eof){
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement