← Quiz: Operators and Templates: all 10 questions
Quiz: Operators and Templates · Question 5 of 10
What is vector<int an example of?
What is vector<int> an example of?
- A.A function template
- B.A class template instantiated with int
- C.An abstract class
- D.A macro
Answer & explanation
Correct answer: A class template instantiated with int
vector is a class template; vector<int> is one instantiation.
Can you get the rest right without peeking?
Take the timed Quiz: Operators and Templates quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →