LearnFrenzy
Sign in Take a free test

Templates · Templates MCQ · Question 17

What causes template code bloat? Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 17 Back to Exercise

What is "code bloat" in the context of templates?

  • A Slow run-time performance
  • B Larger binaries because each distinct instantiation generates its own copy of the code Correct
  • C Unused variables
  • D Long template names
Correct Answer: Option B

vector<int>, vector<long> and vector<double> are three separate classes.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links