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

What are type modifiers in c?

0 Answers  


What is Dynamic Initialization.

3 Answers  


How to print India by nested loop? I IN IND INDI INDIA

4 Answers   NIIT, Wipro,


What is array of structure in c programming?

0 Answers  


11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage

7 Answers   Accenture,






Is that possible to add pointers to each other?

0 Answers  


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

0 Answers  


how many key words availabel in c a) 28 b) 31 c) 32

0 Answers  


How do I convert a string to all upper or lower case?

0 Answers  


how to find sum of 5 digits in C?

4 Answers  


What is a static variable in c?

0 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  


Categories