|
| Total Answers and Comments: 6 |
Last Update: July 31, 2009 Asked by: adil khan |
|
| | |
|
Submitted by: wow_suraj The difference between both the type of variable is of the scope of the variable.
Static local variable is initialized at the time of fucntion call and some memory is assigned for the variable. But as the function return back to it's call the scope fo variable ends and also the memory occupied by the variable is released. While Static global variable has it's scope for the whole of programme life.
Above answer was rated as good by the following members: yzesong | Go To Top
|