0 votes
in C Plus Plus by
What is the use of an extern storage specifier?

1 Answer

0 votes
by

The extern keyword is used to extend the visibility of the C variables and functions in the C language. Extern is the short name for external. It is used when a particular file needs to access a variable from any other file. Extern keyword increases the redundancy and variables with extern keyword are only declared not defined. By default functions are visible throughout the program, so there is no need to declare or define extern functions.

Related questions

0 votes
asked Jan 6 in C Plus Plus by GeorgeBell
+2 votes
asked Jun 19, 2019 in C Plus Plus by anonymous
...