Technical Interview

Tips, questions, answers and puzzles at
www.technical-interview.com

Wednesday, June 30, 2010

What leads to code-bloating in C++?

What leads to code-bloating in C++?




Answer:

Inline functions and templates, if not used properly, may lead to code bloating. Multiple Inheritance may also lead to code bloating (this is because the sub classes will end up getting members from all the base classes even if only few members will suffice). Techniques to avoid code blot are discussed in “Effective C++ programming”.

No comments:

Post a Comment