Computer Science, asked by dhamapuru4920, 1 year ago

What is function template and what are its advantges?

Answers

Answered by SnehaG
0

Function templates are special functions that can operate with generic types. This allows us to create a function template whose functionality can be adapted to more than one type or class without repeating the entire code for each type. In C++ this can be achieved using template parameters.

Similar questions