(c) The potential in depletion layer is due to ions. It appears as if some fictitious battery is connected across the junction with its negative pole connected to $p$-region and positive pole connected to $n$-region. The potential difference developed across the junction due to migration of majority charge carries in potential barrier.