A static function is a function that has a scope limited to an object file. This means these functions are visible to other functions in the same file or same translation unit.

Example:

static int fun(void)
{
    printf("This is a static function ");
}

Note: A static member function can not be declared as a const, volatile, or const volatile. Download our complete list of information technology interview questions and answers to read it offline in the form of a PDF document.

BY Best Interview Question ON 12 Sep 2020