Implmenet Below code in MDK-ARM while code work fine in C51

1.

const unsigned char me[] ={6,"my_lcd"};       // works fine in C51 compiler.

.

while in armcc compiler it gives error:

.
error:  #144: a value of type "char *" cannot be used to initialize an entity of type "const uint8_t"

.

2. How to get it done in armcc compiler also. I have writing decimal no in front, to store how many characters a string will have

Parents Reply Children
No data
More questions in this forum