A Public Prosecutor is appointed under Section 24 of the CrPC. The appointment of a Public Prosecutor is based on the basic principle of the rule of law. This means that every accused person has the right to be heard and to prevent the conversion of wrongful charges into unfair punishment.