What is the difference between static link library and
dynamic link library?

Answer Posted / pushpalatha

Dynamic linking differs from static linking in that it
allows an executable module (either a .dll or .exe file) to
include only the information needed at run time to locate
the executable code for a DLL function. In static linking,
the linker gets all of the referenced functions from the
static link library and places it with your code into your
executable.

Using dynamic linking instead of static linking offers
several advantages. DLLs save memory, reduce swapping, save
disk space, upgrade easier, provide after-market support,
provide a mechanism to extend the MFC library classes,
support multilanguage programs, and ease the creation of
international versions.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are protected members in c++?

611


Where Malloc(), Calloc(), and realloc() does get memory?

605


Write about all the implicit member functions of a class?

591


What does int * mean in c++?

629


What is function prototyping?

616






Explain how an exception handler is defined and invoked in a Program.

578


What is setbase c++?

619


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

534


How long it will take to learn c++?

608


Distinguish between a # include and #define.

641


How do you flush std cout?

560


How would you use the functions randomize() and random()?

619


What is anonymous object in c++?

628


What are abstract data types in c++?

526


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

601