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

int
main()
{
  printf("--------PART 1-------\n");
  /* str1 is an array of size 8 */
  char str1[8]="abcdefg";
  printf("str 1 ---> %s\n", str1);

  /* str2 is an array of size 4 */
  char str2[4]="123";
  printf("str 2 ---> %s\n", str2);

  /* concatenate str1 and str2. new string is str1. print it out. */
  strcat(str1,str2);
  printf("str1 is now %s\n",str1);

  printf("-------PART 2-------\n");

  /* str3 is an array of size 8 */
  char str3[8]="abcdefg";
  printf("str 3 ---> %s\n", str3);

  /* str4 is an array of size 4 */
  char str4[4]="123";
  printf("str 4 ---> %s\n", str4);

  /* Set the 7th element of the array str3 to 'x'. */
  /* --- Add code here.--- */

  /* Now concatenate str3 and str4. new string will be str3. print it out. */
  /* --- Add code here. ---*/


  return 0;
}
