char [] not a valid value type in C (its only a valid declaration type), so you cannot do anything with type char [] . All you can do is convert them into something else (usually char * ) and do something with it.
So, if you want to do something with the data in the array, you need to use some function or operation that takes a char * and cancels it. The obvious choices for your example are strcpy or memcpy
source share