edited by
6,359 views
29 votes
29 votes

Consider a program $P$ that consists of two source modules $M_1$ and $M_2$ contained in two different files. If $M_1$ contains a reference to a function defined in $M_2$ the reference will be resolved at 

  1. Edit time
  2. Compile time
  3. Link time
  4. Load time
edited by

2 Answers

Best answer
56 votes
56 votes

answer - C. Each module is compiled separately and then linked together to make the executable. The below commands shows how to do this for two modules $c1.c$ and $c2.c$ using $gcc$. 

gcc -c c1.c -o c1.o
gcc -c c2.c -o c2.o
gcc c1.o c2.o -o C.exe
edited by
22 votes
22 votes
Linker are the one responsible for resolving external references . so it is link time
Answer:

Related questions

38 votes
38 votes
4 answers
3
Kathleen asked Sep 18, 2014
8,310 views
The following finite state machine accepts all those binary strings in which the number of $1$’s and $0$’s are respectively: divisible by $3$ and $2$odd and evene...
37 votes
37 votes
7 answers
4
Kathleen asked Sep 18, 2014
12,554 views
The minimum number of colours required to colour the following graph, such that no two adjacent vertices are assigned the same color, is$2$$3$$4$$5$