C Programming - Declarations and Initializations - Discussion
Discussion Forum : Declarations and Initializations - General Questions (Q.No. 4)
4.
Is there any difference between following declarations?
1 : | extern int fun(); |
2 : | int fun(); |
Answer: Option
Explanation:
extern int fun(); declaration in C is to indicate the existence of a global function and it is defined externally to the current module or in another file.
int fun(); declaration in C is to indicate the existence of a function inside the current module or in the same file.
Discussion:
56 comments Page 6 of 6.
Ganesh said:
1 decade ago
Extern keyword not understand, please explain.
Rishikumar said:
1 decade ago
How can we declare functions with extern keyword and how can we access that function ?
Nagarjuna said:
1 decade ago
How can we declare functions with extern keyword and how can we access that function ?
Ashwini said:
1 decade ago
What is global function?
Pradeep bhupathi said:
1 decade ago
Extern is a keyword which is used to define any variable or function in externally.
Shobhit said:
2 decades ago
I don't understand the extern. please tell me what is extern.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers