Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

What type can be used to replace templates from this function? template<class T, class U> T func(T a, T b, U c) { if(c == '+' || c){ return a+b; } else if(c == '-' || !c){ return a-b; } }

Select the correct option to test your answer:

More Computer Questions

Sales persons and other employees of the company who spend much of their time away from their offices but keep in touch with their company's microcomputers or main frame computers over telephone lines are called How can you extract a group from a matched regular expression in Python? Is the following Python code valid? >>> a,b,c=1,2,3 >>> a,b,c Which of the following views displays the field name, description, and properties of a table? How can a protected modifier be accessed?