Check out example codes for "c modify char array". It will help you in understanding the concepts better.

Code Example 1

char name_buf[5] = "Bob";
name_buf = "Alice";   // error
strcpy(name_buf, "Alice");

Learn ReactJs, React Native from akashmittal.com