title: How to pass an integer pointer to a function?
body: <p>Here i am executing a simple code in C.
  It is compiling fine but traps during run time.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  #include &lt;conio.h&gt;
  
  void sum(int x,int y,int *z)
  {
      *z=x+y;
  }
  
  void main()
  {
      int a=10,b=20,*c;
  
      sum(a,b,c);
      printf("sum is %d\n",*c);
  }
  </code></pre>
  
  <p>Can someone point out what is the issue?  Also, how does one pass a pointer to a function? </p>