the code compiles well ,, but an error ocures
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.Sign up to join this community
Your problem is
isalpha(argv) isalpha takes a single character as input. argv is a string of multiple characters, not a character. You cannot apply isalpha to an entire string. It causes a seg fault.
If this answers your question, please accept this answer to remove the question from the unanswered question pool. Let's keep up on forum housekeeping. ;-)