tried to readup on the linkage, i noe there is internal linkage, external linkage, no linkage. but my understanding is still not enough to solve this question.
someone pls enlighten me, and hopefully with explanation.
thank in advance!
which of the four given statements is true about the following program?
Code:
int i = 0;
void f(long i);
void main (void){
f(i);
}
void f (long i){
long k = i;
static int j = 1;
if(j>1)
k = i+2;
j = j*2;
}
(a) variable i at line 1 has interenal linkage
(b) variable i at line 6 has function prototype scope
(c) variable j at line 8 has automatic storage
(d) varirable k at line 7 has no linkage.