title: C++ cout will not print
body: <p>What the title says, cout will not print anything! But main finished normally and returns a negative number, what's going on? Here is my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  unsigned long fibonacci(long unsigned int *);
  int main(void)
  {
      cout&lt;&lt;"IT WILL NOT PRINT!!!!!";
      unsigned long int fib[4000000];
      cout&lt;&lt;"SUM OF EVEN FIBONACCI NUMBERS: "&lt;&lt;fibonacci(fib)&lt;&lt;endl;
      return 0;
  }
  unsigned long fibonacci(unsigned long int *FIBO)
  {
      unsigned long i;
      int sum=0,c=0, *EVEN = new int[2000000];
      FIBO[0]=1; FIBO[1]=2;
      for (i=2;i&lt;3999999;i++){
          FIBO[i]=FIBO[i-1]+FIBO[i-2];
          if (FIBO[i]%2==0){
              EVEN[c]=FIBO[i];
              sum+=EVEN[c];
              c++;
          }
      }
      delete [] EVEN;
      return sum;
  }
  </code></pre>