code char *szStr[] = {
"zero", /*0 0*/
"first", /*1 1*/
"second", /*2 2*/
"third", /*3 3*/
"fourth", /*4 4*/
"fifth", /*5 5*/
"sixth", /*6 6*/
"seventh", /*7 7*/
"eighth", /*8 8*/
"nineth", /*9 9*/
"tenth", /*10 10*/
};
Never be the following code, Code 2 is the error code
const char code *szStr[] = {
"zero", /*0 0*/
"first", /*1 1*/
"second", /*2 2*/
"third", /*3 3*/
"fourth", /*4 4*/
"fifth", /*5 5*/
"sixth", /*6 6*/
"seventh", /*7 7*/
"eighth", /*8 8*/
"nineth", /*9 9*/
"tenth", /*10 10*/
};
If you use code 2, you will find that the DATA in the RAM is used