I\'m currently working on Ubuntu, and I realized that when I compile successfully a C program, then set ulimit -c unlimited then run ./samplecode i
ulimit -c unlimited
./samplecode