code:
// array::data #include <iostream> #include <cstring> #include <array> int main () { const char* cstr = "Test string"; std::array<char,12> charray; std::memcpy (charray.data(),cstr,12); std::cout << charray.data() << ' '; return 0; }
Re:
1.cplusplus.com;
End