subject

Consider the following 3 programs:

1
//contents of file foo. c:
static int a = 5;
int main() {
f();
return 0;
}
//contents of file bar. c:
static int a = 10;
void f() {
printf("%d\n", a);
}

2
//contents of file foo. c:
int a = 5; int main() {
f();
return 0;
}
//contents of file bar. c:
void f() { int a = 10;
printf("%d\n", a);
}

3
//contents of file foo. c:
int a = 5;
int main() {
f(); return 0;
}
//contents of file bar. c:
int a;
void main() {
printf("%d\n", a);
}

if the command "gcc foo. c bar. c" is executed, which of the above programs result in a linker error?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Business professionals of america, and future business leaders of america – phi beta lambda are both open to business students at which levels? check all that apply. elementary school middle school high school college
Answers: 1
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Explain the circumstances for which the interquartile range is the preferred measure of dispersion. what is an advantage that the standard deviation has over the interquartile range? choose the correct answer below. a. the interquartile range is preferred when the distribution is symmetric. an advantage of the standard deviation is that it increases as the dispersion of the data increases. b. the interquartile range is preferred when the data are not skewed or no have outliers. an advantage of the standard deviation is that it uses all the observations in its computation. c. the interquartile range is preferred when the distribution is symmetric. an advantage of the standard deviation is that it is resistant to extreme values. d. the interquartile range is preferred when the data are bell shaped. an advantage of the standard deviation is that it is resistant to extreme values. e. the interquartile range is preferred when the data are skewed or have outliers. an advantage of the standard deviation is that it uses all the observations in its computation. f. the interquartile range is preferred when the data are bell shaped. an advantage of the standard deviation is that it increases as the dispersion of the data increases.
Answers: 2
You know the right answer?
Consider the following 3 programs:

1
//contents of file foo. c:
static...
Questions
question
Mathematics, 22.01.2021 20:10
question
History, 22.01.2021 20:10
question
Mathematics, 22.01.2021 20:10