Question: Consider the following 3 programs: 1 2 3 / / contents of file foo.c: static int a = 5 ; int main ( ) {
Consider the following programs:
contents of file foo.c: static int a ; int main f; return ; contents of file bar.c: static int a ; void f printfd
a;
contents of file foo.c: int a ; int main f; return ; contents of file bar.c: extern int a; void f printfd
a;
contents of file foo.c: static int a ; int main f; return ; contents of file bar.c: int a; void main printfd
a;
If the command gcc foo.c bar.c is executed, which of the above programs result in a linker error?
Group of answer choices
only
and
only
and
and
only
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
