What is modular programming? Explain with an example.
Modular programming is a programming principle/concept. Modular Programming breaks the larger programs into parts. When we say parts, all of these parts are required to execute the program. C programming implements modularity by using source files and header files. A function defined in a specific file can be expanded to other files by include preprocessor directive.
Modular programming uses the so called building blocks to form a complete program. Modular programming uses defining, declaring and calling a function for interconnection.
0 Comments