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 to use enum datatype?Please explain me?

3 Answers   Excel,


Is c still relevant?

0 Answers  


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

0 Answers  


wtite a program that will multiply two integers in recursion function

4 Answers   TCS,


What is storage class?

0 Answers  


we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language?????????????

4 Answers   Google,


will u please send me the placement papers to my mail???????????????????

0 Answers  


define c

6 Answers   HCL, TCS,


f(x,y,z) { y = y+1; z = z+x; } main() { int a,b; a = 2 b = 2; f(a+b,a,a); print a; } what is the value of 'a' printed

5 Answers  


What do you mean by a local block?

0 Answers   InterGraph,


9.how do you write a function that takes a variable number of arguments? What is the prototype of printf () function? 10.How do you access command-line arguments? 11.what does ‘#include<stdio.h>’ mean? 12.what is the difference between #include<> and #include”…”? 13.what are # pragma staments? 14.what is the most appropriate way to write a multi-statement macro?

4 Answers   L&T,


How do you determine whether to use a stream function or a low-level function?

0 Answers  


Categories