A sub-module is written under the main module. A submodule is the collection of codes to perform a part of the main program.
Sub-Module is a program, which is written under the main module. A modular program may have one or more than one module or procedure under the main-module. A Sub-Module may have other Sub-Modules.