Potential drops across the p−n junctions will be same if either both junctions are forward biased or both junction are reverse biased. In figure (a) and (c), both junctions are forward biased therefore both have same potential. In figure (b) first junction is forward biased and second junction is reverse biased, so both junctions have different potential difference.