I have mostly seen that the variable has a life time and scope.
But does any function also have life time and scope ?
Code:#include<stdio.h>
void fun (void)
{
printf("sleep \n");
}
int main(void)
{
fun();
return 0;
}
what the static function means in second code ?Code:#include<stdio.h>
static void fun (void)
{
printf("sleep \n");
}
int main(void)
{
fun();
return 0;
}