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
but, if the length of the string which you declared is twenty,you don't need to specify the length,but while it is less than 20, for example
char idata str[]="hello";
strcpy(str,"this a 20-char sting");
"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.