title: How to return a 2D array from a function in C?
body: <p>I am a Ruby programmer who has ended up developing a code generate for C. Its like asking a Limo to tow a 1960s truck. Any way.</p>
  
  <p>Here is what I thought should work but doesnt work.</p>
  
  <pre><code>float[][] pixels()
  {
    float x[][]= { {1,1},{2,2} };
    return x
  }
  
  void drawLine(float x[][2])
  {
    //drawing the line
  }
  
  //inside main
  drawLine(pixels());
  </code></pre>
  
  <p>I have banged my head on my desk trying to get this thing work. Please help. </p>