Append string: how to use strcat : String Append « String « C / ANSI-C






Append string: how to use strcat

 Append string: how to use strcat

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

int main ()
{
  char str[80];

  strcpy (str,"part I,  ");

  strcat (str,"part II, ");

  strcat (str,"part III.");

  puts (str);
  return 0;
}


           
       








Related examples in the same category

1.Demonstrates how to put strings together using strcat
2.Get first and last name and print them together
3.Join strings
4.Join strings: revitalised: strlen and strcat
5.Append string to another string
6.Append string: strncatAppend string: strncat
7.String concatenate
8. Append substring to string: strncat