Skip to content

Instantly share code, notes, and snippets.

@mahdavipanah
Last active April 16, 2021 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahdavipanah/1057cbf5372947b984b0d61c18d81bef to your computer and use it in GitHub Desktop.
Save mahdavipanah/1057cbf5372947b984b0d61c18d81bef to your computer and use it in GitHub Desktop.
void called() {
static count = 0;
count++;
printf("Called: %d", count);
}
int main () {
called(); // Called: 1
called(); // Called: 2
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment