Skip to content
How to fix segmentation fault
Profile icon
dnielletorres

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
Profile icon
Highwayman

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?