hemnath
Advanced Member level 3
Hi all,
I have an array like this,
const unsigned char menu[2][6][8] = {
{"0 BAR ", "0.25 BAR", "0.5 BAR", "0.75 BAR", "1.0 BAR ", "EXIT "},
{"0 BAR ", "0.50 BAR", "1.0 BAR", "1.50 BAR", "2.0 BAR ", "EXIT "}
};
How can I call the particular array value to display.
I tried using
// in a compiler.
It doesn't works. Please help.
I have an array like this,
const unsigned char menu[2][6][8] = {
{"0 BAR ", "0.25 BAR", "0.5 BAR", "0.75 BAR", "1.0 BAR ", "EXIT "},
{"0 BAR ", "0.50 BAR", "1.0 BAR", "1.50 BAR", "2.0 BAR ", "EXIT "}
};
How can I call the particular array value to display.
I tried using
Code:
sprintf(temp_value, "%s", MENU[0][1]);
It doesn't works. Please help.