What are Templates in C++?

a) A feature that allows the programmer to write generic programs
b) A feature that allows the programmer to write specific codes for a problem
c) A feature that allows the programmer to make program modular
d) A feature that does not add any power to the language

1 thought on “What are Templates in C++?”

  1. a
    Explanation: Templates are features in C++ that allows the programmer to write generic programs. for example, making the same function to take different types of arguments and perform the same action on them without specifying the type in the argument list.

Leave a Comment