Science & Tech· Computers
What is the main purpose of a linker?
- aTo detect errors and bugs present in the program
- bTo convert the program code written in one language to another language
- cTo arrange the object code of all the modules generated by the language translator into a single program
- dTo edit information related to audio components of a multimedia application
Show answer and explanation
Answer: (c) To arrange the object code of all the modules generated by the language translator into a single program
A linker takes the separate object-code modules produced by the compiler or assembler, along with library routines, resolves the references between them, and combines them into a single executable program. Translating code from one language to another is the work of a compiler, interpreter or assembler, and finding bugs is done by a debugger.
Source: UPSC CISF 2025 · Q91