Having trouble with sprintf function and string class in my code, I was using string class to make an array to store my menu items
String menu[2] = {{&quot;Menu 1&quot;}, {&quot;Menu2&quot;}};

How do I convert this into char arrays and how do I call them?
Example:
Serial.println(menu[0]);
Create them as char arrays like this:
const char* menu[2] = {&quot;Menu 1&quot;, &quot;Menu 2&quot;};

and use them like this:
Serial.println(menu[0]);