Linux Shared & Static Libraries Question:
Download Questions PDF

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

Download Static and Shared Libraries Interview Questions And Answers PDF

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