What do you mean by the module in Fortran?
While writing a big program or if the functions and subroutines need to be used in more than one program then the programmer use module. A module is like a complete package where a programmer can keep the functions, subroutines. A module basically splits the program into multiple files.
A module contains two parts-
- a specification part for the statements declaration
- a includes a section for the subroutine and the function definitions
This is the favorite interviewer question in Fortran interview questions.
BY Best Interview Question ON 03 Mar 2019
Example
module name
[statement declarations]
[contains [subroutine and function definitions] ]
end module [name]