title: I want to store input in array. and print the array elements but cout line isn't working
body: <blockquote>
  <p>I am new in programming,</p>
  </blockquote>
  <blockquote>
  <p>basically in this program, it takes input from user and storing in array, 5 elements. After loop ends it should give the elements back but it seems that the last line is not working.</p>
  </blockquote>
  <pre><code>include&lt;iostream&gt;
  using namespace std;
  int main(){
  int size=5; 
  string guess[size];
  for (int i=0; i&lt;size;i++){
      cin&gt;&gt;guess[size];
  }
  cout&lt;&lt;guess[size];
    return 0;
  }
  </code></pre>