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

How would you differentiate between a pre and post increment operators while overloading?

902


What is iomanip c++?

831


How are virtual functions implemented in c++?

838


What are the two types of polymorphism?

817


Define a pdb file.

858


Write about the stack unwinding?

864


How can we read/write Structures from/to data files?

884


Explain what are the sizes and ranges of the basic c++ data types?

900


What is class in c++ with example?

814


give me an example for testing a program showing the test path .show how the test is important and complex.

2694


Give 10 points of differences between C & C++.

883


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

869


What is the precedence when there is a global variable and a local variable in the program with the same name?

911


What's the "software peter principle”?

854


What is a class template in c++?

824