title: How to store values in a 2-D array in column major order in c++?
body: <p>I know to store values in an array in row-major order. I'll do it using loops.
  But I don't know to store values in column-major order in c++. Please show me the code sample?. I searched the internet, but i didn't find the proper code sample. </p>