title: C - input 2 values, return 2 values to MAIN. swapping
body: <p>I need to make a program to arrange 4 numbers in ascending order, like 9 2 8 3 to 2 3 8 9.
  So i thought of the logic by using swap. I would be using if/else or switch statements but first i need to solve this problem below.
  I want to input 2 integers (to compare later), then swap them and return it to main function. How do i do this. Please provide the best solution though i haven't been taught pointers, structs etc.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int swap(int x, int y)
  {   
  int c;
      c = x;
      x = y;
      y = c;
      return x, y;
  }
  
  int main()
  {
  int a = 5, b = 7;
  
      printf("a=%d b=%d\n", a, b);
      swap(a, b);
      printf("a=%d b=%d\n", x, y);
      return 0;
  }
  </code></pre>
  
  <p>I want final output as 7, 5. Thanks!</p>