0 votes
in C Plus Plus by
What is static identifier in C Language?

1 Answer

0 votes
by

A file-scope variable that is declared static is visible only to functions within that file. A

function-scope or block-scope variable that is declared as static is visible only within that scope.

Furthermore, static variables only have a single instance. In the case of function- or block-scope

variables, this means that the variable is not ?automatic? and thus retains its value across

function invocations.

Related questions

0 votes
asked Jun 11, 2020 in C Plus Plus by Robindeniel
0 votes
asked Jan 6 in C Plus Plus by GeorgeBell
...