1.

What Does Static Variable Mean?

Answer»

Static variable is available to a C APPLICATION, throughout the life time. At the time of starting the program execution, static variables allocations takes place FIRST. In a scenario where one variable is to be used by all the functions (which is accessed by main () function), then the variable NEED to be DECLARED as static in a C program.

Static variable is available to a C application, throughout the life time. At the time of starting the program execution, static variables allocations takes place first. In a scenario where one variable is to be used by all the functions (which is accessed by main () function), then the variable need to be declared as static in a C program.



Discussion

No Comment Found