replace character in char array c code example
Example: c modify char array
char name_buf[5] = "Bob";
name_buf = "Alice"; // error
strcpy(name_buf, "Alice");
char name_buf[5] = "Bob";
name_buf = "Alice"; // error
strcpy(name_buf, "Alice");