title: Unhandled exception thrown: write access violation. bunnies_array was 0x5CB3CBA
body: <p>hello i'm novice at programing and i was playing with classes to get used to it, but i found that when ever i use loop with an array in my class i get this error 
  Unhandled exception thrown: write access violation. bunnies_array was 0x5CB3CBA. </p>
  
  <pre><code>bunny.h   
  
       #pragma once
          #include &lt;iostream&gt;
  
          class bunny {
          public:
              int change(int(&amp;bunnies_array)[100]);
  
          };
  
  bunny.cpp
  
      #include "bunny.h"
  
      int bunny::change( int(&amp;array)[100])
      {
  
          for ( int i = 0; i &lt; 100; i++)
          {
              array[i] = 1;
          }
  
          return 0;
      }
  
  main.cpp
  
      #include "bunny.h"
  
      int main()
      {
           int bunnies_array[100];
  
          bunny trail;
  
          trail.change((&amp;bunnies_array)[100]);
          std::cout &lt;&lt; bunnies_array[0];
          return 0;
      }
  </code></pre>