Can someone explain why only one of my functions prints to console?
<p>Here is my code in C++:</p>

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

int tuna = 20; // this is global

//main function
int main()
{
    int tuna = 69; // this is local
    cout &lt;&lt; tuna &lt;&lt; endl;
}

//fish function
int fish() 
{
    cout &lt;&lt; tuna &lt;&lt; endl; // this should print global?
}
</code></pre>

<p>The <code>fish</code> function doesn't print to the console when I run it. I am not sure why and it doesn't make sense to me. </p>
