title: C programming; lvalue required
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8218693/lvalue-required-error">Lvalue required error</a>  </p>
  </blockquote>
  
  
  
  <p>I am having an error in my C program</p>
  
  <pre><code>main () {
      int arr[] = {1, 2, 3, 4};
      printf("%d", *arr);
      arr++;
      printf("%d", *arr);
  }
  </code></pre>
  
  <p>When I compile this code I get lvalue required error. for the <strong>line with arr++</strong>.
  Any Help!</p>