title: Error : "lvalue required as left operand of assignment"
body: <pre><code>void main()
  {
      int sum=0;
      printf("%d",add(sum));
  }
  
  int add(int x)
  {
      (x&lt;=100) ? x=x+add(x+1) : x=0;
      return x;
  }
  </code></pre>
  
  <p>In the function, I am trying to print sum of first 100 natural numbers using recursion.But I'm getting error as "lvalue required as left operand of assignment". Can anyone help me solve this error and explain the concept behind it?</p>