JUST DO IT.
#include <iostream>
using namespace std;
int main()
{
int c_matrix[3][3] = {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
cout << c_matrix[i][j] << " ";
}
cout << endl;
int c_nums[3] = { 1, 2, 3 };
int size = sizeof(c_nums) / sizeof(int);
for (int i = 0; i < size; ++i)
cout << c_nums[i] << " ";