Vidyalelo
C++ Programming · Q826

C++ miscellaneous

Programming · C++ Programming · question 826

Q826

What will be the output of the following C++ code? #include #include #include using namespace std; template class A public: T func(T a, T b) return a/b; ; int main(int argc, char const *argv[]) A a1; cout<<a1.func(65,1)<<endl; cout<<a1.func(65.28,1.1)<<endl; return 0;

A.
A
A
Answer
B.
65
65
C.
A
65
D.
65
A

Answer: Option A

Solution

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