which method to declare this array?

const int MATRIX=10;

char noMatrix[MATRIX]={"BC0123","BC1234","BC2345","BC3456","BC4567","BC5678","BC6789","BC7890","BC8900","BC9999"};

OR


char MATRIX[10][7]={"BC0123","BC1234","BC2345","BC3456","BC4567","BC5678","BC6789","BC7890","BC8900","BC9999"};

//help to decide which method is correct.
Last edited on
Topic archived. No new replies allowed.