Multiple choice

Which of the following operations is done by a macro processor?

  1. Breaks source program instructions into parts

  2. Textual search-and-replace

  3. Checks if all necessary input has been provided

  4. Combines object modules

  5. Copies programs from a storage device to main memory

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Languages such as C and assembly language have rudimentary macro systems, implemented as preprocessors to the compiler or assembler. C preprocessor macros work by simple textual search-and-replace at the token, rather than the character, level.