Three programs on one computer all use the same DLL to print documents. Give two benefits of this compared with putting the print code inside each program.
- A DLL is not copied into the executable file, so each of the three program files is smaller.
- The DLL is loaded into memory only when a program calls it, and one copy can be shared, so less RAM is used.
- If the print routine is improved, only the DLL file is replaced. The three programs do not need to be recompiled.
Answer: Smaller executable files and less memory used, and the routine can be updated without recompiling the programs.