Concatenate String or Char

I want to set up an array of strings and add it to an other string like below. It seems I can create an array using char*, but I can only concatenate two strings, not two char variables. Is there a solution? Here is my code

char* myStrings[]={"Morning", "Day", "Evening","Night"};

void setup() {
Serial.begin(9600);
}

void loop() {
int i=2;
char greeting="Good "+myStrings*;*

  • Serial.println(greeting);*
    }

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn't show the posting toolbar then you can just manually add the code tags:
[code]``[color=blue]// your code is here[/color]``[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor you will not have access to this useful tool but it's still unacceptable to post poorly formatted code. I recommend you to use the standard IDE instead.

The first thing you need to know is that a string is an array of chars so your greeting variable could only hold one character.

The second thing you need to know is that the char array must be sized large enough to hold the full string.

Once you have prepared the appropriate variable to hold the string, you can use strcat() to concatenate strings into it:
http://www.cplusplus.com/reference/cstring/strcat/