A template can be instantiated by
-
Explicit Instantiation
-
Implicit instantiation
-
Both A and B
-
None of the Above
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.