Template C++ | Sololearn: Learn to code for FREE!

0

Template C++

Drag and drop from the options below to declare a template function "doubler", taking one argument and returning its value, multiplied by 2. The argument is a template argument named "ARG". <class > ARG doubler(ARG value) { value * 2; }

7/19/2019 10:21:03 PM

Sounak dey

4 Answers

New Answer

+2

template<class ARG> ARG doubler(ARG value) { return value * 2; } I think that is what you mean by this question.

0

answer is template arg return

0

drag and drop from the options below to delow to declare a template function "doubler", taking one argument and returning its value, multiplied by 2. the argument is a template argument named "ARG". ANSWER:- Template ARG RETurn

0

Drag and drop from the options below to declare a template function "doubler", taking one argument and returning its value, multiplied by 2. The argument is a template argument named "ARG". <class > ARG doubler(ARG value) { value * 2; }