What does extern mean in a function declaration?

What does extern mean in a function declaration?

- An extern function or a member can be accessed outside the scope of the .cpp file in which it was defined.
- A variable, function or declaration that is defined with extern, allows to make the usage f variable, function by the remaining part of the current source file. The declaration does not replace the definition. The declaration of function or a variable is just to describe their use external to the current file.
- In case one identifier is declared with file scope, and an identifier that is declared external with the same name within a block refers the same object. In case no other identifier exists at file scope then the identifier will be linked to the external file.

Define precondition and post-condition to a member function - C++
Define precondition and post-condition to a member function - Precondition: A condition that should return true when a member function is invoked....
What is an array?
What is an array? - An array is a collection of variables of the same type that are referred to through a common name......
Define pointer and array. Explain the difference between them - C++
Define pointer and array. Explain the difference between them - A pointer is a variable that holds a memory address. This address is the location of another object (typically, a variable) in memory....
Post your comment