Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #54.9K
~130 People Reached
Favorite Forums
Favorite Tags
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 |