Suppose the following minimal code:
#include
char character = \'c\';
int main (void)
{
char character = \'b\';
printf(\"The current value
Although global variables exist from the start to the end of the execution of a program, they are not automatically accessible.
A global variable is accessible starting from the location in the file where the global variable is defined or declared until the end of the file.
If in a function scope one defines a variable with the same name, the global variable will exist, but will not be accessible.