Is there any difference between following declarations? 1 : extern int fun(); 2 : int fun();

Review the verified answer and explanation for this DemoPaper-Pakistan past-paper question on CampusFin.

Is there any difference between following declarations? 1 : extern int fun(); 2 : int fun(); Answer: No difference, except extern int fun(); is probably in another file

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.

Question context

This question is part of 💡 C Programming within the broader 💻 Programming subject and appears in the DemoPaper-Pakistan preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.