title: Putting arrays into another array
body: <p>How do I store a list of arrays into another set of array? I tried this way but it doesn't work.</p>
  
  <pre><code>float data1[5] = {150.0, 203.0, 165.0, 4.0, 36.0};
  float data2[5] = {249.0, 255.0, 253.0, 104.0, 2.0};
  
  float allData[2] = {data1, data2};
  
  cout &lt;&lt; allData[1][2] &lt;&lt; endl;     //this should print 253.0 but it has error
  </code></pre>
  
  <p>This didn't allow me to compile. I also tried to change it to <code>float *allData[2] = {data1, data2};</code> and it allowed me to compile but I don't get the result I want.</p>
  
  <p>What have I done wrong in this?
  Thanks.</p>