Vidyalelo
C++ Programming · Q621

C++ miscellaneous

Programming · C++ Programming · question 621

Q621

What will be the output of the following C++ code? #include using namespace std; template void squareAndPrint(T x, U y) cout (ii, jj);

A.
23
2.1 4.41
B.
24
2.1 4.41
Answer
C.
24
2.1 3.41
D.
2.1 3.41

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board