Segmentation Fault (core dumped): Error when providing no argument

34 Views Asked by At

Code implementation I was trying to implement the code such way that it takes only a command line argument, and if not provided or provided more than 1, it prints out an error message. But it is showing "segmentation fault(core dumped)" whenever I am not giving any argument in the command line. What have I done wrong?

0

There are 0 best solutions below