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