Are static variables re-allocated every time the function is called in C

1 Answer

0 votes
No.

Static variables are like a global living within the function's local scope.

You can only reference it from inside of that function.

 



answered May 24, 2024 by avibootz
...