What does extern mean in a function declaration?

Answer Posted / aravind

Extern is nothing but a memory storage type.If we declare extern before the function than the variable can be accessed by that function not only locally but externally too.
extern int a=4
Int fun (int x)
{
x=a;
print gives a=4

Is This Answer Correct ?    8 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by type specifiers?

912


Are the variables argc and argv are local to main?

1029


What is array in c with example?

899


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

1899


Is c dynamically typed?

919


Who developed c language?

882


What are the types of data types and explain?

886


What is realloc in c?

848


Explain what is gets() function?

842


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

904


write a program to generate address labels using structures?

4319


What is static volatile in c?

783


What is .obj file in c?

872


Is there any demerits of using pointer?

838


Why calloc is better than malloc?

813