How to fix segmentation fault
dnielletorres (11)

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.

You are viewing a single comment. View All
Highwayman (1503)

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?