=== Matrix representation in c++ == == A matrix == [ 4 5 3 ] | [ 6 2 6 ] 4 [ 2 6 9 ] | [ 4 6 9 ] | ---- 3 ---- As you can see it have 4 rows and 3 columns in c++ it is written As float a[4][3] = { {4,5,3}, {6,2,6}, {2,6,9}, {4,6,9} };