title: Function with char array parameter
body: <p>I'm trying to write a function for printing text in C for PIC microcontrollers (I think it's based on gcc).</p>
  
  <pre><code>void print(char[] text);
  
  void print(char[] text)
  {
      for(ch = 0; ch &lt; sizeof(text); ch ++)
      {
          do_something_with_character(text[ch]);
      }
  }
  </code></pre>
  
  <p>and call it like this:</p>
  
  <pre><code>print("some text");
  </code></pre>
  
  <p>I'm getting compiler complaints about wrong brackets.</p>
  
  <ol>
  <li><p>What is wrong with this?</p></li>
  <li><p>How can I use char array pointer in this case?</p></li>
  </ol>