title: random numbers with pointers (C)
body: <p>I want to create random numbers within a range (0 - a) and return them with the pointer b and c.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;time.h&gt;
  
  void random (int a, int *b, int *c)
  {
      srand(time(0));
      *b = rand()%(a+1);
      *c = rand()%(a+1);
      printf("%i%i", *b, *c);
  }
  
  int main()
  {
      int a = 10; // upp
      int* b;
      int* c;
      random (a, b, c);
  }
  </code></pre>
  
  <p>The Code works, although my executable crashes right after the random().</p>
  
  <p>Any ideas why it crashes?</p>