C Functions Question:
Do you know what is the purpose of "extern" keyword in a function declaration?
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;
Example:
extern int number;
Previous Question | Next 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? |