Mention the basic purpose of templates. C++ with example
Answers
Answered by
0
Templates are powerful features of C++ which allows you to write generic programs. In simple terms, you can create a single function or a class to work with different data types using templates. Templates are often used in larger codebase for the purpose of code reusability and flexibility of the programs.
Similar questions
English,
7 months ago
Math,
7 months ago
Computer Science,
7 months ago
Chemistry,
1 year ago
Economy,
1 year ago