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
What is the difference between struct and union in C?
Explain what is the purpose of "extern" keyword in a function declaration?
Why c is faster than c++?
How main function is called in c?
What is a built-in function in C?
Is there any data type in c with variable size?
What are valid operations on pointers?
What are the application of void data type in c?
What do the functions atoi(), itoa() and gcvt() do?
What are the back slash character constants or escape sequence charactersavailable in c?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
how do you execute a c program in unix.
What are pointers really good for, anyway?
write a progrmm in c language take user interface generate table using for loop?
Explain how can I prevent another program from modifying part of a file that I am modifying?