title: Passing pointer to function as an output parameter
body: <p>I am using 'pBuff' as pointer and put a char array in function 'myfunc'.
  So, In main function, I should receive it in aBuff.</p>
  
  <p>But it is not working.. what is wrong here ??</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  void myfunc(void *pBuff, int &amp;i);
  int main()
  {
      int len;
      char aBuff[2]={0};
      printf("Hello World");
      myfunc(aBuff,len);
      printf("aBuff %s", aBuff);
  
      return 0;
  }
  
  myfunc(void *pBuff, int &amp;i){
      char a[2] = {'a', 'b'};
      i = 5;
      pBuff = &amp;a;
  }
  </code></pre>
  
  <p><code>char a[]</code> should come as output parameter in main function</p>