What is the correct syntax of defining function template/template functions?

a) template <class T> void(T a){cout<<a;}
b) Template <class T> void(T a){cout<<a;}
c) template <T> void(T a){cout<<a;}
d) Template <T> void(T a){cout<<a;}

1 thought on “What is the correct syntax of defining function template/template functions?”

Leave a Comment