Check out example codes for "c copy 2 strings\". It will help you in understanding the concepts better.

Code Example 1

#include <string.h>
#include <stdio.h>
int main()
{
  char str[9]="A string";
  char copy[9];
  strcpy(copy,str);
  printf("Copied String : %s",copy);
  return 0;
}

Learn ReactJs, React Native from akashmittal.com