How to fix segmentation fault
This is my first attempt at C and I am having trouble with this specific error and I don't know where to fix it.
It seems to be something about your factorial function. It’s a recursive function, so I’d think it’s a stack overflow or something but that doesn’t make sense because when I tested it with 0, it still crashed. Good luck I guess?