Q421
What will be the output of the following C++ code? #include using namespace std; template inline T square(T x) T result; result = x * x; return result; ; template <> string square (string ss) return (ss+ss); ; int main() int i = 4, ii; string ww("A"); ii = square (i); cout (ww) << endl;
A.
416AA
AnswerB.
164AA
C.
AA416
D.
AA41A
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board