[ create a new paste ] login | about

Link: http://codepad.org/zhxvKdfH    [ raw code | output | fork ]

C++, pasted on Jun 9:
1
2
3
4
5
6
7
8
9
10
#include <iostream>

int main(){
   int *p = new int[3];
   std::cout << *(p++) << std::endl;
   delete [] p;
   std::cout << "End." << std::endl;

   return 0;
}


Output:
1
2
3
4
-1819044973
memory clobbered before allocated block

Exited: ExitFailure 127


Create a new paste based on this one


Comments: