Multiple choice technology programming languages

A template can be instantiated by

  1. Explicit Instantiation

  2. Implicit instantiation

  3. Both A and B

  4. None of the Above

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

C++ templates can be instantiated both explicitly (using template<> declaration) and implicitly (when the compiler deduces template arguments from usage). Both mechanisms are valid and commonly used in C++ programming, making option C the correct answer.