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; }
4 odpowiedzi
+ 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;
}