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

Templates can be instantiated both explicitly and implicitly. Implicit instantiation occurs when you use a template with specific types and the compiler generates the code automatically. Explicit instantiation happens when you explicitly tell the compiler to instantiate a template with specific types using template<> syntax.