Given below is the definition of a function template template [class T] T mul (x, y) { return x * y; } Identify errors, if any
- class T in the first line should be within angle brackets < and >
- The type of arguments of mul function must be declared as T
- Both a and b
- No error
Answer:
Option c: Both a and b
Explanation Here
0 Comments