Hi everyone can someone tell me how to declare a array of 20 characteres. I wanto to use this array to fill with a string and then display it in a LCD. Also I wanto to use a pointer to read or write in this array thanks
"you need to store a 20-length string later on" that's why I said, "...unless you have a specific reason to do so..." In that case, yes - you would need to explicitly state the length as 21 in the definition.
strcpy(str,"this a 20-char sting");