what is linkage error when it occurs in c program

Answers were Sorted based on User's Feedback



what is linkage error when it occurs in c program ..

Answer / karthik

linkage error occurs when the library files included in
program are not present in default directory you added while
installing compiler.. set environment settings and change
directory.... you will not get linkage errors..

Is This Answer Correct ?    14 Yes 1 No

what is linkage error when it occurs in c program ..

Answer / naresh

main()
{
extern int iExtern;
iExtern = 20;
printf(“%d”,iExtern);
}
Why do we get linkage error for the above code

Is This Answer Correct ?    14 Yes 3 No

what is linkage error when it occurs in c program ..

Answer / rajesh

Linkage error occurs when the linker fails to resolve all
the symbols during the linking process. This can happen if
the linker is not able to find any definition for an extern
declaration in one .C file by the time of linking.

Is This Answer Correct ?    6 Yes 2 No

Post New Answer

More C Interview Questions

How would you obtain the current time and difference between two times?

0 Answers   TISL,


#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300

4 Answers   Tieto,


what is the similarities between. system call and library function?

1 Answers   Wipro,


How does free() know explain how much memory to release?

0 Answers  


write a program which will count occurance of a day between two dates.

1 Answers   IonIdea,






C program code int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

6 Answers   TCS, Wipro,


please send me papers for Dy. manager IT , PNB. it would be a great help for me.

0 Answers  


What is file in c preprocessor?

0 Answers  


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

0 Answers   Google, Infosys,


How does C++ help with the tradeoff of safety vs. usability?

1 Answers  


Is c# a good language?

0 Answers  


what r callback function?

1 Answers  


Categories