I\'ve been coding this in project in C++, normally I wouldn\'t have too much trouble with a segmentation fault, but I\'m new to C++. Basically I\'m making a pointer to an IntLis
Below line just defined a pointer, not malloc memory, so it's pointed to a random address in memory : IntList *x;
When you try to assign the value "y" to it, program crashes.