A resist composition comprising a base polymer and a sulfonium or iodonium salt capable of generating a brominated benzene-containing sulfonic acid offers a high sensitivity, minimal LWR and improved CDU independent of whether it is of positive or negative tone.