C language array pointer assignment
Your mistake is that you can't assign the value of char* to char[64]. This is a very basic pointer problem. The array name represents the first address of the array and cannot be modified. The pointer can be modified. A copy of a string array can be assigned one character at a time, or it can be assigned with the memcpy () function. Of course, if a string is passed in, you can also use the strcpy () function.