STRANGE FUNNY SITUATION. - HELP PLEASE

Hello to all,
I have this code and i want to print the questions.

String question1 ="What's your name?";
String question2 = "What's your surname?";
String question3 = "What'is your age?";
String finalquestion;
String generic="question";

void setup() {

Serial.begin(9600);
}

void loop() {

for (int x=1; x<4; x++) {

finalquestion=generic+x;

Serial.println(finalquestion);

delay(1000);

}

}

If I run the code I get as a result: "question1"
"question2"
"question3."

That are the names of the variables that i would like to print.

But instead I want to get "What's your name?"
"What's your surname?"
"What'is your age?"

That are the values of the variables that i would like to print.

In this example, the contents of the variable finalquestion is equal to the name of the variable that I would like to print.

I know that Serial.println (finalquestion) prints the value of finalquestion.
But if I wanted to print the value of variables question1, question2, question3 how should I do?

What is the right way to do it?

Thank you.

You can't build up the name of a variable as a String. ("question" + 1 = "question1", and then expect to reference the value of variable question1.)
You can make an array of Strings, and then add members of the array":

String answers[3] = {"George", "Blue", "I seek the holy grail"};
for (byte i=0; i<3; i++) {
  String s = "My answer is ";
  s = s + answers[i];
  Serial.println(s);
}

Thank you.
I didn't know i could build an arry of string. :roll_eyes:
The solution is simpler than I thought :wink:
I'm newbie, and is better that i read much more documentation before to write program. :blush:
Thank a lot. :slight_smile:

and is better that i read much more documentation before to write program.

Not too much more, though. Read some. Write some code. Understand what you wrote. Read some more, and repeat.