A 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 B lay down any inflexible rule which would govern the exercise of inherent jurisdiction. No legislative enactment dealing with procedure can provide for all cases tht may. possibly arise. Courts, ·therefore, have inherent powers apart from express provisions of law which are C necessary for proper discharge of functions and duties imposed upon them by law. That is the doctrine which finds expression in the section which merely recognizes and preserves inherent powers of the High Cour;ts. All courts, whether civil or criminal, possess, in the asence 0of any express provision, as inherent in theirconst~ution, all such powers as are necessary to do the right and to undo a wrong in the course of administration of justice on the principle quando lex aliquid a/icui concedit, concedere videtur id sine quo res ipsa esse non potest (when ' the law gives a person anything it gives him that without E which it cannot exist). ,[Para 10] [14-E, F, G, H; 15-A-B]