title: Passing a "full" string array to a function
body: <p>I was trying to pass <code>myStringArray</code> to a function in the following code. </p>
  
  <pre><code>#include &lt;cstdio&gt;
  #include &lt;string&gt;
  #include &lt;cstring&gt;
  #include &lt;vector&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int loopy(auto someString){
      for (auto Word : someString){
          cout &lt;&lt; "In " &lt;&lt; __func__ &lt;&lt; " word is " &lt;&lt; Word &lt;&lt; endl;
      }
      return 0;
  }
  
  int main(){
      string myStringArray[] = {"abc","def", "xyz", "meh" };
      for (auto Word: myStringArray){
          cout &lt;&lt; "In " &lt;&lt; __func__ &lt;&lt; " word is " &lt;&lt; Word &lt;&lt; endl;
      }
      loopy(*myStringArray);
      return 0;
  }
  </code></pre>
  
  <p>The o/p I see is:</p>
  
  <pre><code>$ ./a.out 
  In main word is abc
  In main word is def
  In main word is xyz
  In main word is meh
  In loopy word is a // &lt;&lt;-- this
  In loopy word is b // &lt;&lt;--this 
  In loopy word is c // &lt;&lt;--this
  </code></pre>
  
  <p>As you can see, the <code>loopy</code> function only does see the 1st word of the string array(?) that I am passing. </p>
  
  <p>What am I doing wrong, and what's the correct way to pass these C++ nuances to functions?  Thanks!</p>