r/C_Programming • u/Myhai25 • Sep 04 '26
C methology
Why in C/C++ is not very often use notation of framework, and instead is used libraries?
0
Upvotes
r/C_Programming • u/Myhai25 • Sep 04 '26
Why in C/C++ is not very often use notation of framework, and instead is used libraries?
17
u/thethirdmancane Sep 04 '26
Because frameworks dictate your application's execution flow and add overhead.
Libraries are modular tools you call explicitly, which gives you more control.
5
u/SwordsAndElectrons Sep 04 '26
A library is any reusable code module.
A framework (typically) provides the scaffolding and much of the execution engine for you application.
Frameworks are often delivered as libraries, but not all libraries are frameworks. While where it may be a little vague where the line is drawn in some cases, I don't think that I could agree that they are synonyms.
2
u/chrism239 Sep 05 '26
And frameworks appeared about 25 years after C appeared.
3
u/ScallionSmooth5925 Sep 04 '26
Because it's simpler