Use std::array instead of C array