Linux Shared & Static Libraries Question:

After using the shared library, memory can be done free by calling:
a) dlclose
b) slclose
c) lclose
d) none of the mentioned

Static and Shared Libraries Interview Question
Static and Shared Libraries Interview Question

Answer:

a) dlclose


Previous QuestionNext Question
In GCC compiler, "-shared" option is given to create the shared library with:
a) source files
b) object files
c) executables
d) none of the mentioned
When a program is linked with a shared library:
a) only a small table is created in the executable
b) executable contains the whole content of respective .so file
c) executable contains nothing related with the shared libraries
d) none of the mentioned