Check out example codes for "string strcat function in c". It will help you in understanding the concepts better.

Code Example 1

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

int main() {
   char str1[100] = "This is ", str2[] = "A Name";

   // concatenates str1 and str2
   // the resultant string is stored in str1.
   strcat(str1, str2);


   return 0;

Code Example 2

strcat(example, "is over 10 ");

Learn ReactJs, React Native from