#include <iostream>
#include <vector>
#include <string>
#include <cstring>

int main()
{
	char features[20];
	std::vector<std::string> words = { "123","456","789" };

	int i = 0;
	for (size_t n = 0; n < words.size(); ++n)
	{
		for (size_t m = 0; m < words[n].size(); ++m)
			features[i++] = words[n][m];
		features[i++] = 0;
	}
	features[i] = 0; //<-- extra terminating null

	char *features_ptr = features;
	while (*features_ptr)
	{
		std::cout << features_ptr << std::endl;
		features_ptr += std::strlen(features_ptr) + 1;
	}
}