This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Variable to string

Hi all.
i just want to know how can i convert variables to strings
for eg-,

unsigned char b[2];
unsigned char a;
void main()
{
a=20;
a=b;
print_lcd(b);
}


i want to print the value to 'a' which is 20 to 16x2 lcd using keil.
but the above program does not work for me...
can anybody please give me an idea of how can i do it...