Hello,
Any ideas why this is giving a segmentation fault?:
#include <iostream>
#include <new>
using namespace std;
struct List {
int A;
int B;
List *next;
};
int main(void) {
int llength;
llength=1111111111;
List *L;
L= new List[llength];
L[37370197].B=-37370197;
delete [] L;
return 0;
}
Cheers