Which of the following is commonly part of building a C++ program?

Options

  • A. Compilation
  • B. Linking
  • C. Both compilation and linking
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. Both compilation and linking

Detailed Explanation

Correct Answer: C — Both compilation and linking.

Explanation: A typical C++ build process compiles source files into object files and then links object files and libraries into an executable. The exact steps depend on the toolchain.