title: Passing string as an argument in C
body: <p>I am having a function:</p>
  
  <pre><code>int getparam(char *gotstring)
  </code></pre>
  
  <p>and i am passing a string argument to it, like <code>char *sendstring = "benjamin"</code></p>
  
  <p>Instead of the above declaration I can use,</p>
  
  <pre><code>int getparam(char gotstring[])
  </code></pre>
  
  <p><strong>Question:</strong> Which one is better? And if I have to use <code>int getparam(char gotstring[])</code> what are all the other changes I have to make to the existing function?</p>