title: Is this way is prefered to swap two variable without temp in c?
body: <pre><code>#include&lt;stdio.h&gt;
  
  int main()
  {
  
      int a=20,b=30;
  
      a=a+b;
      b=a-b;
      a=a-b;
  
  
  
      return 0;
  }
  </code></pre>
  
  <p>Can I use this program to swap both positive and negative values.</p>