When you write large program then it is most important to manage all the details in proper manner without any complexity. In program there are lots parameters which are used again and again in different part of coding. So template is way to define those repeated parameters in one module and called it in different coding part without adding entire details. Syntax of function templates Template<classidentifier>function_declaration; template <typename identifier> function_declaration;