String literals like "test" are read-only and so they cannot be modified. So any attempt to modify them will result in undefined behavior.
For example:
char *a = "test";
*a = 'b';
The *a = 'b'; is an undefined behavior.
So if you want to modify them then you need to use an array
char a[]="test";
So you can modify the "test" to "best" by doing the following:
a[0] = 'b';