Ad
  • Default User Avatar

    I dont know if it's too late and you've already solved it, but chars in c are marked by single quotation marks: ''. Having: "" means you're trying to compare strings, which you must use strcmp for. str[j] is a char so your comparison should be with a char.