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 |
How would you obtain the current time and difference between two times?
#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
what is the similarities between. system call and library function?
How does free() know explain how much memory to release?
write a program which will count occurance of a day between two dates.
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
please send me papers for Dy. manager IT , PNB. it would be a great help for me.
What is file in c preprocessor?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
How does C++ help with the tradeoff of safety vs. usability?
Is c# a good language?
what r callback function?