how to assign the data to char array in c code example
Example 1: c add char to char array
char str[1024] = "Hello World";
char tmp[2] = "."; //Has to be of size 2 because strcat expects a NULL terminated string
strcat(str, tmp);
Example 2: c modify char array
char name_buf[5] = "Bob";
name_buf = "Alice"; // error
strcpy(name_buf, "Alice");