title: What does "lvalue required" mean in a C compiler error?
body: <pre><code> #include&lt;stdio.h&gt;   //line 1
   #include&lt;conio.h&gt;   //line 2
   void main()         //line 3
   {                   //line 4
     int a=6,g=7,b=3;    //line 5
     clrscr();           //line 6
     printf("%d",a&gt;?g=a:g=b); //line 7
     getch();                //line 8
   }
  </code></pre>
  
  <p>Case 1: before saving the file</p>
  
  <p>This will give an error at line no 7 'Lvalue required'. But when I compile no error will come and after running, it produced output 3.</p>
  
  <p>Case 2 : after saving the file</p>
  
  <p>And when we save this file then we get an error "Lvalue required'.</p>
  
  <p>sorry for my mistake and Write question here  </p>
  
  <pre><code> #include&lt;stdio.h&gt;   //line 1
      #include&lt;conio.h&gt;   //line 2
      void main()         //line 3
      {                   //line 4
      int a=6,g=7,b=3;    //line 5
      clrscr();           //line 6
      printf("%d",a&gt;b?g=a:g=b); //line 7**
      getch();                //line 8
      }
  </code></pre>
  
  <p>Case 1: before saving the file</p>
  
  <p>This will give an error at line no 7 'Lvalue required'. But when I compile no error will come and after running, it produced output 3.</p>
  
  <p>Case 2 : after saving the file</p>
  
  <p>And when we save this file then we get an error "Lvalue required'.</p>