Template function syntax - Functions

Q.  Which of the following best defines the syntax for template function ?
- Published on 17 Jul 15

a. Template
b. Template return_type Function_Name(Parameters)
c. Both a and b
d. None of these

ANSWER: Both a and b
 

    Discussion

  • Ramesh   -Posted on 19 Oct 15
    template <class TYPE>
    The actual meaning of TYPE would be interpreted by compiler depending on the argument passed to this function. Here, TYPE is known as template type parameter.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)