Q879
What will be the output of the following C++ code? #include #include #include using namespace std; template T func(T a) cout<<a; return a; int func(int a) cout<<a; int main(int argc, char const *argv[]) int a = 5; int b = func(a); float c = func(5.5); return 0;
A.
5
B.
55.5
AnswerC.
Error
D.
Segmentation fault
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board