Linux Shared & Static Libraries Question:

If a program is linked against a static library then:
a) machine code of the used function is copied in the executable
b) used function definition is copied into the preprocessd code
c) used function definition is provided at the time of compiling
d) none of the mentioned

Answer:

a) machine code of the used function is copied in the executable

Read All 20 Static and Shared Libraries Questions
Previous QuestionNext Question
To use the static library in the program:
a) header file must be provided to in the source code
b) path for the library must be specified
c) both (a) and (b)
d) none of the mentioned
Which gcc option is used to specify the library?
a) -c
b) -l
c) -a
d) -o