I don't understand what is meaning of "Entire life of the program" with respect to variable and function declaration in c programming.
A project can have multiple source files like main.c, File1.c, File2.c, File3.c etc. We can access variables declared in another file in main.c file. We can call the any type of function from any other sources file in main.c by using extern storage class
if the global variable declare in main.c it can only accessble for this source file only.
if the local variable declare in side function in main.c it can only asscessble for the function only
What is "Entire life of the program"?
A project can have multiple source files like main.c, File1.c, File2.c, File3.c etc. We can access variables declared in another file in main.c file. We can call the any type of function from any other sources file in main.c by using extern storage class
if the global variable declare in main.c it can only accessble for this source file only.
if the local variable declare in side function in main.c it can only asscessble for the function only
What is "Entire life of the program"?