title: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
body: <p>I want to Prompt the user to enter 3 numbers. Then, swap the first number with the second one, the second number with the third and the third with the first by calling a function called "swap".</p>
  
  <p>Functions in <code>C</code> cannot return more than one value so I decided to create a structure with pointers that I will later use in my function. Then, I created three-pointers that will store the address of each one of the numbers so I can dereference to these numbers in my function (as shown below)</p>
  
  <pre><code>Number.pa = *ppb;
  Number.pb = *ppc;
  Number.pc = *ppa;
  </code></pre>
  
  <p><strong>Here's my code:</strong> </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  void swap(); // a = b, b = c, c = a
  
  struct Numbers {
  
      int *pa, *pb, *pc;
  
  } ;
  
  int main(void) {
  
      struct Numbers Number; // Structure to hold the values of the three variables.
  
      int a, b, c;
      int *ppa, *ppb, *ppc;                                              
      printf("\n Please enter three integer numbers: ");  
      scanf("%d%d%d", &amp;a, &amp;b, &amp;c);
      ppa = &amp;a; ppb = &amp;b; ppc = &amp;c;                                         
      swap(a, b, c, Number, *ppa, *ppb, *ppc);
      printf("\n %d \t %d \t %d \n", Number.pa, Number.pb, Number.pc);
  }
  
  void swap(int a, int b, int c, struct Numbers Number, int *ppa, int *ppb, int *ppc) { 
  
      Number.pa = *ppb;
      Number.pb = *ppc;
      Number.pc = *ppa;  
  
     } ;
  </code></pre>