Which of the following is correct about templates?

a) It is a type of compile time polymorphism
b) It allows the programmer to write one code for all data types
c) Helps in generic programming
d) All of the mentioned

1 thought on “Which of the following is correct about templates?”

  1. d
    Explanation: Templates are used for generic programming hence allowing to write a single function for all data types. It is a type of compile time polymorphism.

Leave a Comment