Enter the C++ code found on the back of the SEGFAULT poster at the following URL and be sure to select ‘C++’ for the type of code you want to run
http://codepad.org/If you are unable to eliminate the bug causing the C++ code to SEGFAULT you can hover over the text below to reveal the solution
On the 9th line of the C++ code:
int * arr = new int[7];
You need to change the array size to 8:
int * arr = new int[8];
This will prevent the program from trying to access unallocated dynamic memory (Segfaulting)