Code:
#include <vector>
#include <string>

constexpr int size = 2; // Use constexpr for constant data, if possible; otherwise const.
std::vector<std::string> array{ makeArray(size) }; // Use std::vector for arrays and std::string for strings. Use brace initialisers if possible.
for (auto & str : array) // Use range-for loop if possible
    std::cout << str << "\n"; // Use std::cout for output, not printf.
Code:
std::vector<std::string> makeArray(int size)
{
    return { "1", "0" };
} // end of makeArray