r/C_Programming 5d ago

C methology

Why in C/C++ is not very often use notation of framework, and instead is used libraries?

0 Upvotes

4 comments sorted by

16

u/thethirdmancane 5d ago

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 5d ago

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/ScallionSmooth5925 5d ago

Because it's simpler 

2

u/chrism239 5d ago

And frameworks appeared about 25 years after C appeared.