what is linkage error when it occurs in c program
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
How does the C program handle segmentation faults?
What is bash c?
How can I make it pause before closing the program output window?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Write a program to reverse a linked list in c.
Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass.
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }
Write a program to print fibonacci series without using recursion?
which one is highest Priority in c? a)=,b)+,c)++,d)==
How do shell structures work?
what does ‘Bus Error’ mean?