[ create a new paste ] login | about

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

C++, pasted on Jul 27:
1
2
3
4
5
6
7
8
#include <iostream>
using namespace std;

int main(){
	char * ptr = (char *)256;
	delete [] ptr;
	return 0;
}


Output:
1
Segmentation fault


Create a new paste based on this one


Comments: