Get premium membership and access questions with answers, video lessons as well as revision papers.

What is a generic function and what is its general form in a C++ computer program?

      

What is a generic function and what is its general form in a C++ computer program?

  

Answers


Davis
In C++, a generic function defines a general set of operation that will be applied to various types of data.It is implemented with the ke yword template.Its general form is as shown below
templateret-type func-name(param-list){
//..
}
Githiari answered the question on February 5, 2018 at 11:43


Next: What is the main advantage of run-time polymorphism? What is its potential disadvantage?
Previous: What is a general class and what is its general form in a C++ computer program?

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions