why this code is showing segmentation fault and what is segmentation fault?
Spiral print anticlockwise
segmentation fault is nothing but run time error, it causes when you do something that can’t be solved like 5/0 , it can’t be computed.
Debugging it, till then be patient.
here’s your debugged code, have added few comments for correction https://ide.codingblocks.com/s/368833
If this solved your query, please mark it as resolved 