Purpose of "extern" keyword in a function declaration

What is the purpose of "extern" keyword in a function declaration?

- The only other storage class possible for a function is static, which must be specified explicitly.
- It cannot be applied to a block scope function declaration and results in internal linkage.
- The keyword 'exter' indicates the actual storage of the variable is visible, or body of a function is defined elsewhere, commonly in a separate source code.
- This extends the scope of the variables or functions to be used across the file scope.

extern int number;
Use of fflush() function
In ANSI, fflush() [returns 0 if buffer successfully deleted / returns EOF on an error] causes the system to empty the buffer associated with the specified output stream.....
Difference between malloc() and calloc() function
malloc() and calloc() function - Both functions are used to dynamically allocate the memory. The difference is that calloc initializes the allocated memory to 0 or Null while malloc contains garbage values.....
Difference between strcpy() and memcpy() function
strncpy() is similar to memcopy() in which the programmer specifies n bytes that need to be copied.....
Post your comment