Dynamic 2D array: Space Issue
<p>I am using the following code to create dynamic 2D array.</p>

<pre><code>uint32_t** arrays = new uint32_t*[1000]; 
uint32_t number = take input from console ;
arrays[0] = new uint32_t[number];
number = take input from console ;
arrays[1] = new uint32_t[number];
delete arrays[0] ;
number = take input from console ;
arrays[0] = new uint32_t[number] ;
</code></pre>

<p>I am using 64 bit Unix machine to execute above code.</p>

<p>In the above code the machine is taking 64 bit pointer to point 2nd dimension array and that's why the code is taking more space.</p>

<p>Can anyone help me, how to convert the code thus it takes 32 bit pointer ? Or another way to solve space complexity ? I don't want to use vector of vectors as it is not asked to do by my prof. </p>
