What is the difference between following declarations?

  • 0 replies
  • 1200 views
*

Offline mechanic

  • Engineer
  • *****
  • 3420
  • Gender: Male
  • Engineer
    • View Profile
    • Engineering Forum
What is the difference between following declarations?
« on: April 28, 2016, 02:34:44 PM »
Question: Is there any difference between following declarations? or what is the difference between following declarations?

1 :    extern int fun();
2 :    int fun();

Options are:

A.    Both are identical
B.    No difference, except extern int fun(); is probably in another file
C.    int fun(); is overrided with extern int fun();
D.    None of these

Correct answer is:

B.    No difference, except extern int fun(); is probably in another file

Why no? see explanation in attachments