what is linkage error when it occurs in c program

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Implement bit Array in C.

881


What is realloc in c?

816


State the difference between realloc and free.

828


Why is it that not all header files are declared in every C program?

897


What are dangling pointers? How are dangling pointers different from memory leaks?

911


Which is better between malloc and calloc?

894


How can I handle floating-point exceptions gracefully?

879


Why use int main instead of void main?

854


what will be the output for the following main() { printf("hi" "hello"); }

10134


Write a program to implement queue.

868


How can I automatically locate a programs configuration files in the same directory as the executable?

860


What is volatile, register definition in C

895


What are the types of i/o functions?

965


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

844


What is a buffer in c?

754