title: C program - lvalue required as left operand of assignment -
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
  int N,i ,j ,m ;
  int T[i][j] ;
  do{
      printf("Saisir N");
      scanf("%d", &amp;N);
      i=N ; j=N;
  }while(N&gt;10 &amp;&amp; N&lt;0);
  for(m=1;m&lt;(N/2);m++){
  
      for(i=1;i&lt;N;i++){
  
            for(j=1;j&lt;N;j++){
                  if ( i=(m-1) &amp;&amp; j=(N-m+1)){ // i get the error in this line
                      T[i][j]=m;
                  }
                  if ( i=(m-1) &amp;&amp; j=(m-1) ){  // i get the error in this line
                      T[i][j]=m;
                  }
                  if ( i=(N-m+1) &amp;&amp; j=(N-m+1) ){ // i get the error in this line
                      T[i][j]=m;
                  }
                  if (i=(N-m+1) &amp;&amp; j=(m-1)){ // i get the error in this line
                      T[i][j]=m;
                  }
            }
  
      }
  }
  }    
  </code></pre>
  
  <p>I get this error " lvalue required as left operand of assignment" in the lines with "if conditions" i dont know where the problem is . Thank you </p>