title: Arrays assignment in C
body: <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
  
      double roomdata[5][18][2],t;
  
      scanf(" %lf",t);
      roomdata[0] = t; // How Come this does not work?
                       // I get a error "Incompatible Types in Assignment"
                       // but both roomdata array and t are same type of double.
  }
  </code></pre>
  
  <p>I am trying to assign a value to the array <code>roomdata</code> at index [0] but every time I try I get a error saying its a <em>Incompatible Types in Assignment</em>, but I have both initialized as doubles? I'm guessing it has something to do with it being a 3d array but I am not sure.</p>