Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

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

Answer Attachments

Exams With Marking Schemes

Related Questions