Step 1: Understanding the Concept
At a p-n junction, diffusion of holes and electrons creates a depletion region with a built-in barrier potential.
Step 2: Direction of the field
The barrier field points from the n side to the p side. It pushes electrons back into the n side and holes back into the p side.
Step 3: Which carriers are opposed
Majority carriers, that is holes of the p region and electrons of the n region, are opposed. Minority carriers are swept across by the same field.
Step 4: Compare the options
Only the option naming majority carriers in both regions covers both types.
Final Answer:
The barrier potential opposes the majority carriers in both regions.
\[ \boxed{\text{(A) }\text{majority carriers in both regions.}} \]