All pastes #929283 Raw Edit

Unbenannt

public text v1 · immutable
·published 2008-03-05 17:39 UTC
rendered paste body

#include <stdio.h>
#include <stdlib.h>
#include <string.h>


  /*int concat1 (char s[], char t[]);
  
  int main ()
  {
   	  char s[20] = {"Guten"};
   	  char t[10] = {"Tag"};
  	  contact1 (s,t);
   	  printf ("%c", concat1);
	  return 0;
  }
  
   int concat1 (char s[], char t[]) 
  {
   	  int i,j;
	 i=0; j=0;
   	  while (s[i]!='\0') i++;
   	  while ((s [i])= t[j]!='\0')
   	  {
	   		 i++; j++;
	   			}
   }*/

int main ()
{
 	char s [20] = {"Guten"};
 	char t [10] = {"Tag"};
 	//printf ("%s", s);
 	//printf ("%s", t);
 	fgets (t, 10, stdin);
 	printf ("%s", s,t);
 	strcat (s, " ");
 	strcat (s, t);
 	
	 }