I want to declare a function that outputs a string, but how do I name the type of the function? For example int function() returns an integer, char function() returns a char, but what if I want to output a string? I tried using "string" as the type but it wasn't rcognised, so do I have to use char along with the square brackets somehow?
Also, I then want to use this function in a for loop and concatenate them into one. If I do this, does it ignore the newline '\n' at the end of each string?...so the concatenated string will be all on one line when I print it.