What is the difference between normal function and template function?

a) The normal function works with any data types whereas template function works with specific types only
b) Template function works with any data types whereas normal function works with specific types only
c) Unlike a normal function, the template function accepts a single parameter
d) Unlike the template function, the normal function accepts more than one parameters

1 thought on “ What is the difference between normal function and template function?”

  1. b
    Explanation: As a template feature allows you to write generic programs. therefore a template function works with any type of data whereas normal function works with the specific types mentioned while writing a program. Both normal and template function accepts any number of parameters.

Leave a Comment