Difference between anal cancer and hemorrhoids?

Visual inspection. Needs to be evaluated by a surgeon. Can have a different look. If it appears suspicious, then a biopsy is required. Hope this helps.