title: pointer or return two values to print
body: <p>I'm trying to write function which get 2 values or return one value . So when i want use function i got values which are addresses i think</p>
  
  <pre><code>int function (int a, int *b, *c){
      int value;
      value=a*2; 
      (*b)=value/10;
      (*c)=value%10;
  }
  
  int main(void){
      int val1,p1,p2,rest1,rest2;
      val1=150;
      function(val1,&amp;p1,&amp;p2);
      rest1=p1*2+p2;
      rest2=p2;
      printf("%d m %d end %d"rest1,rest2,&amp;p2);
  }
  </code></pre>
  
  <p>also i think about return only one </p>
  
  <pre><code>int funct2(int a){
      int array [2];
      int b=(65*a)/100;
      int c=b%1000;
      array[0]=b;
      array[1]=c;
      return array;
  }
  
  int main(void)
  {
      int a=18;
      int array[2];
      array=funct2(a);
  }
  </code></pre>
  
  <p>Doesn't work either.</p>
  
  <p>So how can i buld function to get 2 values or get this 2 values as one value.. please help</p>