All pastes #274613 Raw Edit

Something

public text v1 · immutable
·published 2006-12-10 20:56 UTC
rendered paste body
Consider the following function template:

template <class T>
void repeatValue(T val, int times)
{
     int x;
     for(x = 0; x < times; ++x)
       cout<<”#”<<(x+1)<<” “<<val<<endl;
}

Which of the following statements is true?

	a. 	No restrictions apply.  
	b. 	Any type of object from a user defined class can be displayed the specified number of times.  
	c. 	It can be called only with primitive data types.  
	d. 	Any type of object can be displayed the specified number of times as long as the << operator is defined for the object’s data type.