title: A strange sizeof() bug occured on DevC++
body: <p>I know I shouldn't use Dev-C++ but it's mandatory in school so I can't do anything about it.</p>
  
  <p>Topic is pointers in C/C++ and a bug occurred while measuring the length of an integer array. See the code below:</p>
  
  <pre><code>// POINTER
  # include&lt;iostream&gt;
  # include&lt;string.h&gt;
  
  using namespace std;
  
  int main(){
      //neues Feld anlegen
      int *a = new int[5];
  
      a[0] = 12;
      a[1] = 5;
      a[2] = 43;
      a[3] = -12;
      a[4] = 100;
      // Feld füllen
  
      for(int i = 0; i&lt;sizeof(a);i++){
              cout&lt;&lt;a[i]&lt;&lt;"\n"&lt;&lt;endl;
              }
      cout&lt;&lt;sizeof(a);
      system("pause");
      return 0;
  
  }
  </code></pre>
  
  <p>The sizeof() returns 4 and not 5...Any ideas?</p>