C++ What's wrong with my array/loop?
<p>I've just started learning C++ so I'm fairly sure the answer may be a simple one. As a test I'm just setting up an array and then wanting to print out the array by looping through it.</p>

<p>My code is below. It prints out my array as expected but then prints out a load of other numbers below it. What are these numbers and where are they coming from? I suspect that 'sizeof' isn't the best to use. All of the examples i've found are alot more complicated than I need. In any case I am interested to understand the extra numbers. Any insight available?</p>

<pre><code>int age[4];
age[0]=23;
age[1]=34;
age[2]=65;
age[3]=74;

for (int i = 0; i &lt;= sizeof(age); i++)
  cout &lt;&lt; age[i] &lt;&lt; endl;
return 0;
</code></pre>

<p>...output:</p>

<pre><code>23
34
65
74
4
2147307520
0
2293608
4198582
1
3084992
3085608
-1
2293592
1980179637
-725187705
-2
</code></pre>
