Question abount String versus string


I have a question about Strings or strings.

If I use the String Object or string are the values in that object ASCii values. For instance:

String Text= [color=#c03030]"Turn Led On";[/color]
char Text[] = "Turn Led on";

I would like to know if "Turn led on" on both occasions are ASCii values?


a String object includes a char array

There is a buffer in memory that will hold indeed the ASCII code (or UTF8 if you use non ASCII characters) for your text.

in case 1, Text is an instance of the String class and Text.c_str() is the pointer to the underlying buffer.

in case 2, Text is directly a pointer to that buffer.