What are procedures?
Procedures are a group of instructions stored as a separate program in memory and it is known from the main program whenever needed. The type of procedure depends on where the procedures are stored in memory. If it is in the similar code segment as that of the main program then it is a near procedure otherwise it is a far procedure.