I need to assign a pointer to an array of characters:
char str1[17];
char* h="hey";
str1 = h;
But i get this error : error C2440: '=' : cannot convert from 'char *' to 'char [17]'.
I was thinking that an array name is the same as a pointer to a character and array name is the address of the first character of the array so assigning a pointer to a char to array name would work.
I don't know why i get the error.
How can i fix it?