Check out example codes for "how to put a char into a string c". It will help you in understanding the concepts better.

Code Example 1

// C program to Append a Character to a String 
  
#include <stdio.h> 
#include <string.h> 
  
int main() 
{ 
    // declare and initialize string 
    char str[] = "Geek"; 
  
    // declare and initialize char 
    char ch = 's'; 
  
    // print string 
    printf("Original String: %s\n", str); 
    printf("Character to be appended: %c\n", ch); 
  
    // append ch to str 
    strncat(str, &ch, 1); 
  
    // print string 
    printf("Appended String: %s\n", str); 
  
    return 0; 
}

Learn ReactJs, React Native from akashmittal.com