title: How to bringing positve number with same negative number together in C programming language
body: <p>I have the following array</p>
  
  <pre><code>arr= {1, 2, 3, 4, 4, 5, 6, -2, -2,-3,-1,-5,-4,-7}
  </code></pre>
  
  <p>I want to convert to the following format in C programming language</p>
  
  <pre><code>arr= {-1, 1, -2, -2, 2, -3, 3, -4, 4, 4, -5, 5, 6, -7}
  </code></pre>