C Functions Question:

Do you know what is the purpose of "extern" keyword in a function declaration?

Tweet Share WhatsApp

Answer:

The keyword ‘extern’ 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.

Example:
extern int number;

Download C Functions PDF Read All 45 C Functions Questions
Previous QuestionNext Question
What is the difference between malloc() and calloc() function in C Language?What is the difference between strcpy() and memcpy() function in C Programming?