What is "Segmentation fault (core dumped)?" - Stack Overflow
https://stackoverflow.com/questions/19641597/what-is-segmentation-fault-core-dumped
WebOct 28, 2013 · "Segmentation fault" means that you tried to access memory that you do not have access to. The first problem is with your arguments of main . The main function should be int main(int argc, char *argv[]) (or, equivalently, int main(int argc, char **argv) ), and you should check that argc is at least 2 before accessing argv[1] .
DA: 3 PA: 56 MOZ Rank: 92