#include <stdio.h>

/*
In C, functions are global by default. 
The “static” keyword before a function name makes it static. 
For example, below function fun() is static.
*/

static int fun(void){
    printf("I am a static function ");
}

int main(){
    fun();
}

/*
Unlike global functions in C, 
access to static functions is restricted to the file where they are declared.
Therefore, when we want to restrict access to functions, we make them static. 

Another reason for making functions static can be reuse of the same function name 
in other files.
*/

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: