A ment of the Code. It envisages three circumstances under which the inherent jurisdiction may be exercised, namely, (i) to give effect to an order under the Code, (ii) to prevent abuse of the process of court, and (iii) to otherwise secure the ends of justice. It is neither possible nor desirable to lay down any inflexB ible rule which would govern the exercise of inherent jurisdiction. No legislative enactment dealing with procedure can provide for all cases that may possibly arise. Courts, therefore, have inherent powers apart from express provisions of law which are necessary for proper discharge of functions and duties imC posed upon them by law. That is the doctrine which finds expression in the Section which merely recognizes and preserves inherent powers of the High Courts. All courts, whether civil or criminal possess, in the absence of any express provision, as inherent in their constitution, all such powers as are necessary to do the right and to undo a wrong in course of administration 0 of justice on the principle quando lex aliquid alique concedit, conceciitur et id sine quo res ipsa esse non potest (when the law gives a person anything it gives him that without which it cannot exist). While exercising powers under the Section, the Court does not function as a court of appeal or revision. lnherE ent jurisdiction under the Section though wide has to be exercised sparingly, carefully and with caution and only when such exercise is justified by the tests specifically laid down in the Section itself. It is to be exercised ex debito justitiae to do real and substantial justice for the administration of which alone F courts exist. Authority of the court exists for advancement of justice and if any attempt is made to abuse that authority so as to produce injustice, the court has power to prevent such abuse. It would be an abuse of process of the court to allow any action which would result in injustice and prevent promotion of justice. G In exercise of the powers court would be justified to quash any proceeding if it finds that initiation/continuance of it amounts to abuse of the process of court or quashing of these proceedings would otherwise serve the ends of justice. When no offence is disclosed by the complaint, the court may examine the H question of fact. When a complaint is sought to be quashed, it