C++ assignment error
<p>I am new to C++ and I have the code below. I am trying to assign <code>int board[] = create_board();</code>, like I would in java, but it gives me the error </p>

<blockquote>
  <p>Initializer failed to determine size of board.</p>
</blockquote>

<p>Also when I remove that line of code, my print statement is not shown in the command prompt regardless. </p>

<p>Is there something that I am doing wrong in printing the array as well?</p>

<p><strong>Code:</strong></p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

int* create_board() {
  int* pointer;
  int board[15];
  pointer=board;
  for(int i=0; i&lt;16; i++)
    board[i] = 1;
  return pointer;
}

int main () {   
  int board[] = create_board(); 
  for (int i; i&lt;16; i++)
      std::cout &lt;&lt; board[i];
  return 0;
}
</code></pre>
