## C/C++ How to Convert 2D Array to 1D Array?

In this post, we will discuss how to convert a 2D array to a 1D array in C/C++. Row-Major Order Row-Major order means we insert elements of the 2D array to 1D array row-wise. First, we insert elements of the 1st row of the 2D array to the 1D array, then elements of 2nd row …