What does extern mean in a function declaration?

Answer Posted / poornima

extern is a keyword that is prefixed in function
declaration. It means tht function definition is in source
file.
for eg.
source file contains int sum(int x,int y) definition part.
To make use of this function in file by simply declare as
extern int sum(int ,int); is a good practice.
But to compiler happy extern sum(); is enough.

Is This Answer Correct ?    34 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it better to use a macro or a function?

658


How can I manipulate strings of multibyte characters?

640


Difference between strcpy() and memcpy() function?

681


Why we use conio h in c?

588


What is structure pointer in c?

574






Do you know the use of 'auto' keyword?

663


What is your stream meaning?

608


What is stack in c?

616


What is a list in c?

622


Can you explain the four storage classes in C?

645


What is structure in c language?

620


What is self-referential structure in c programming?

661


How do you determine the length of a string value that was stored in a variable?

652


Are pointers integer?

552


What is null pointer in c?

596