CPP practice question 24 of 30

What happens when you attempt to compile and run the following code? #include using namespace std; template class A { T_v; public: A() {} A(T v): _v(v){} friend ostream & operator

Full set: 228 questions
Answer options
A: program will display:10
B: program will not compile Correct answer
C: program will compile
D: program will run without output
Correct Answer:
B. program will not compile
Scroll to Top