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

What are type modifiers in c?

614


Explain the array representation of a binary tree in C.

719


What is function in c with example?

619


Explain what does a function declared as pascal do differently?

630


What is a pointer in c?

677






Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1418


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

637


What is the scope of local variable in c?

567


Should a function contain a return statement if it does not return a value?

588


What is "Duff's Device"?

695


How can I write a function that takes a format string and a variable number of arguments?

598


Where are the auto variables stored?

618


write a program to find the given number is prime or not

3824


Is null always defined as 0(zero)?

603


Can a program have two main functions?

564