+ 1
What is the use of static functions in c? How it is allowed to use them in different files ?
Static keyword
4 Answers
+ 3
Additional resource:
https://www.geeksforgeeks.org/what-are-static-functions-in-c/
+ 2
look at this code and you'll understand
static variables basically saves the value on the function and doesn't get deleted / overwritten when the function is called again.
https://code.sololearn.com/cWGssWjLO2Bu/?ref=app
+ 1
Thank you